/* Greenlane design system — matches "Greenlane Screens" (Sep 2026).
   One file for checkout, customer app, merchant, admin and agent desks. */
:root {
  --page: #f5f6f1;
  --card: #ffffff;
  --ink: #12151c;
  --ink-2: #2b303b;
  --muted: #5b616d;
  --faint: #8a909b;
  --line: #e3e5de;
  --line-2: #eceee8;
  --field: #ffffff;
  --grey: #e4e7e0;
  --grey-ink: #4b5160;
  --green: #15803d;
  --green-hover: #126c34;
  --green-deep: #14532d;
  --green-ink: #0f5e2c;
  --green-tint: #e7f4eb;
  --green-line: #b9dcc4;
  --green-bright: #4ade80;
  --amber: #b45309;
  --amber-tint: #fdf1d8;
  --amber-pill: #f59e0b;
  --yellow: #fde68a;
  --red: #b42318;
  --red-tint: #fdecea;
  --blue-tint: #e8eefc;
  --side-dark: #12151c;
  --side-dark-2: #1d2029;
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.gl {
  font-family: var(--sans); color: var(--ink); background: var(--page);
  font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; min-height: 100vh;
}
:where(.gl) a { color: inherit; }
:where(.gl) :where(button, input, select, textarea) { font: inherit; color: inherit; }
:where(.gl) button { cursor: pointer; }
.gl h1 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 0; font-weight: 700; }
.gl h2 { font-size: 17px; letter-spacing: -.015em; margin: 0; font-weight: 700; }
.gl h3 { font-size: 15px; margin: 0; font-weight: 700; }
.gl p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.b { font-weight: 700; }
.sb { font-weight: 600; }
.right { text-align: right; }
.center { text-align: center; }
.g { color: var(--green); }
.gi { color: var(--green-ink); }
.am { color: var(--amber); }
.rd { color: var(--red); }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 0; }
.link.plain { text-decoration: none; }
.eyebrow { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.sample-note { font-size: 11px; color: var(--faint); margin-top: 10px; }
.sample-note::before { content: "● "; color: var(--amber-pill); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* layout helpers */
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row.between { justify-content: space-between; }
.spacer { flex: 1; }
.stack { display: grid; gap: 12px; }
.stack.s6 { gap: 6px; } .stack.s8 { gap: 8px; } .stack.s16 { gap: 16px; } .stack.s20 { gap: 20px; }
.cols { display: grid; gap: 16px; }
.c2 { grid-template-columns: 1fr 1fr; }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c5 { grid-template-columns: repeat(5, 1fr); }
.c-2-1 { grid-template-columns: 1.55fr 1fr; }
.c-1-2 { grid-template-columns: 1fr 1.6fr; }
.c-3-2 { grid-template-columns: 1.4fr 1fr; }
.mt4 { margin-top: 4px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.logo { width: 26px; height: 26px; flex: none; display: block; }
.tag-admin, .tag-agent { font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 3px 6px; border-radius: 5px; background: #86efac; color: var(--green-deep); }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card.tight { padding: 14px 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.dark .muted, .card.dark .k { color: #b8bec9; }
.card.greenbg { background: var(--green); color: #fff; border-color: var(--green); }
.card.tint { background: var(--green-tint); border-color: var(--green-line); }
.card.amber { background: var(--amber-tint); border-color: #f4dca7; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }

/* stat tiles */
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin: 6px 0 4px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 15px; font-weight: 700; letter-spacing: 0; margin-left: 2px; }
.stat .v small.g { color: var(--green-bright); }
.stat .d { font-size: 12.5px; color: var(--muted); }
.stat .d.up { color: var(--green); }
.card.dark.stat .d.up { color: var(--green-bright); }
.stat .d.warn { color: var(--amber); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; background: var(--ink); color: #fff; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn.green { background: var(--green); }
.btn.green:hover { background: var(--green-hover); }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.danger { background: #fff; color: var(--red); border-color: #f1c4bf; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { padding: 4px 9px; font-size: 12px; border-radius: 7px; }
.btn.lg { padding: 16px 20px; font-size: 16px; border-radius: 12px; }
.btn.xl { padding: 19px 22px; font-size: 18px; border-radius: 12px; font-weight: 700; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* segmented / tabs */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.seg button, .seg a { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-weight: 500; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.seg .on { background: var(--ink); color: #fff; font-weight: 600; }
.seg.sm button { padding: 5px 11px; font-size: 13px; }
.seg.full { display: flex; } .seg.full button { flex: 1; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button, .tabs a { border: 0; background: none; padding: 10px 12px; color: var(--muted); font-weight: 500; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs .on { color: var(--ink); border-color: var(--ink); font-weight: 600; }
.chipbar { display: flex; gap: 6px; flex-wrap: wrap; }
.chipbar button { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-size: 13px; }
.chipbar .on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* forms */
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 500; }
.field .hint { font-weight: 400; color: var(--faint); font-size: 12px; }
.input, .gl input[type=text], .gl input[type=email], .gl input[type=password], .gl input[type=number], .gl input[type=tel], .gl input[type=url], .gl input[type=search], .gl input:not([type]), .gl select, .gl textarea {
  width: 100%; background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-width: 0; font-size: 14px; color: var(--ink);
}
.gl textarea { min-height: 72px; resize: vertical; }
.gl select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b616d' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.gl input:focus, .gl select:focus, .gl textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,128,61,.14); }
.gl input::placeholder { color: #9aa0a9; }
.inline-in { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.inline-in input { border: 0 !important; box-shadow: none !important; }
.inline-in .unit { padding: 0 12px; color: var(--muted); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--green); flex: none; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.radio-card.on { border: 2px solid var(--green); padding: 13px 15px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #8a909b; flex: none; display: grid; place-items: center; }
.radio-card.on .radio { border-color: var(--green); }
.radio-card.on .radio { border-width: 6px; }

/* toggle */
.tog { position: relative; width: 38px; height: 22px; flex: none; display: inline-block; }
.tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.tog span { position: absolute; inset: 0; background: #cfd3cb; border-radius: 999px; transition: .15s; cursor: pointer; }
.tog span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.tog input:checked + span { background: var(--green); }
.tog input:checked + span::after { transform: translateX(16px); }

/* pills & badges */
.pill { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 600; background: var(--grey); color: var(--grey-ink); white-space: nowrap; line-height: 1.35; }
.pill.green { background: var(--green-tint); color: var(--green-ink); }
.pill.solid { background: var(--green); color: #fff; }
.pill.amber { background: var(--amber-tint); color: var(--amber); }
.pill.red { background: var(--red-tint); color: var(--red); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.blue { background: var(--blue-tint); color: #2446a8; }
.pill.yellow { background: var(--yellow); color: #5b3a00; }
.pill.outline { background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.pill.xs { font-size: 10.5px; padding: 2px 6px; letter-spacing: .02em; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; font-size: 12px; font-weight: 700; background: var(--amber-pill); color: #2a1a00; }
.count.live { background: var(--green); color: #fff; font-size: 10.5px; letter-spacing: .05em; padding: 0 8px; }
.num-badge { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; font-weight: 700; background: var(--amber-tint); color: var(--amber); flex: none; }
.num-badge.grey { background: var(--grey); color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot.amber { background: var(--amber-pill); } .dot.grey { background: #b7bcc4; } .dot.red { background: var(--red); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 8px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl.pad th:first-child, .tbl.pad td:first-child { padding-left: 20px; }
.tbl.pad th:last-child, .tbl.pad td:last-child { padding-right: 20px; }
.tbl .r { text-align: right; }
.tbl tr.sel td { background: var(--green-tint); }
.tbl tr.warnrow td { background: #fff8ea; }
.tbl.compact td { padding: 8px; }
.tbl tr.click { cursor: pointer; } .tbl tr.click:hover td { background: #fafbf7; }
.st-ok { color: var(--green); font-weight: 600; }
.st-warn { color: var(--amber); font-weight: 600; }
.st-bad { color: var(--red); font-weight: 600; }
.st-muted { color: var(--muted); font-weight: 600; }

/* bars */
.hbar { height: 26px; border-radius: 5px; background: var(--green); }
.hbar.ink { background: var(--ink); }
.minibar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.minibar i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.minibar.ink i { background: var(--ink); }
.cols-chart { display: flex; align-items: flex-end; gap: 8px; height: 190px; }
.cols-chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 0 0; overflow: hidden; }
.cols-chart .col i { display: block; }
.legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

/* code */
.code { background: var(--ink); color: #d7dde6; border-radius: 12px; padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre; overflow: auto; margin: 0; }
.code .c { color: #7c8594; } .code .s { color: #86efac; } .code .k { color: #fcd34d; }

/* callouts */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--green-tint); color: var(--green-ink); font-size: 13px; }
.note.amber { background: var(--amber-tint); color: #7a4a06; }
.note.grey { background: #eef0ea; color: var(--ink-2); }
.note.red { background: var(--red-tint); color: var(--red); }
.note svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.banner-sample { position: fixed; left: 50%; top: 4px; transform: translateX(-50%); z-index: 50; background: var(--amber-tint); color: #7a4a06; border: 1px solid #f4dca7; font-size: 11px; padding: 2px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; }

/* list rows */
.lrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.lrow:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.kv > :first-child { color: var(--muted); }
.kv.line { border-bottom: 1px solid var(--line-2); padding: 12px 0; }
.kv.line:last-child { border-bottom: 0; }

/* ===== desk shell (merchant / admin / agent) ===== */
.desk { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.desk-side { background: #fff; border-right: 1px solid var(--line); padding: 20px 14px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow: auto; }
.desk-side .brand { padding: 0 10px; margin-bottom: 22px; }
.desk-nav { display: grid; gap: 2px; }
.desk-nav a { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: 14.5px; }
.desk-nav a:hover { background: #f3f4ef; }
.desk-nav a.on { background: var(--green-tint); color: var(--green-ink); font-weight: 600; }
.desk-nav a.sub { padding-left: 30px; font-size: 13.5px; }
.desk-nav a.sub::before { content: "↳"; margin-right: 6px; opacity: .7; }
.desk-nav a.sub { justify-content: flex-start; }
.desk-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 14px 10px 0; font-size: 13.5px; }
.desk-foot .live { color: var(--green); font-weight: 600; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.desk-foot .live.test { color: var(--amber); } .desk-foot .live.test .dot { background: var(--amber-pill); }
.desk-main { padding: 26px 36px 48px; min-width: 0; }
.desk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.desk-head .date { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.desk-head .lead { color: var(--muted); margin-top: 6px; font-size: 14px; max-width: 760px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.crumb a { color: var(--green); text-decoration: none; font-weight: 600; }

/* dark admin side */
.desk.dark .desk-side { background: var(--side-dark); border-color: var(--side-dark); color: #e6e8ec; }
.desk.dark .desk-side .brand { color: #fff; }
.desk.dark .desk-nav a { color: #d3d7de; font-size: 14.5px; padding: 9px 12px; }
.desk.dark .desk-nav a:hover { background: var(--side-dark-2); }
.desk.dark .desk-nav a.on { background: #262a35; color: #fff; font-weight: 600; }
.desk.dark .desk-nav a.sub { font-size: 13.5px; color: #c3c8d0; }
.desk.dark .desk-foot { border-color: #2a2e38; color: #d3d7de; }
.desk.dark .desk-foot b { color: #fff; }
.desk.agent .desk-side { background: #11291d; border-color: #11291d; }
.desk.agent .desk-nav a.on { background: rgba(255,255,255,.10); }
.desk.agent .desk-nav a.on { background: rgba(255,255,255,.12); }
.desk.agent .desk-nav a:hover { background: rgba(255,255,255,.08); }
.desk.agent .desk-foot { border-color: rgba(255,255,255,.14); }

/* drawer / detail panel on the right */
.split { display: grid; grid-template-columns: 1fr 380px; gap: 18px; align-items: start; }
.split.wide { grid-template-columns: 1fr 440px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; position: sticky; top: 16px; }
.panel h2 { margin-bottom: 4px; }

/* ===== mobile app shell (checkout, customer app) ===== */
body.mob { background: var(--page); }
.mob-wrap { max-width: 430px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; background: var(--page); position: relative; }
.mob-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); min-height: 56px; position: sticky; top: 0; z-index: 5; }
.mob-top .brand { font-size: 17px; }
.mob-top .brand .logo { width: 24px; height: 24px; }
.mob-top .amt { font-weight: 700; font-size: 16px; }
.mob-top .secure { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-tint); color: var(--green-ink); display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 0; }
.mob-body { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mob-body h1 { font-size: 26px; }
.mob-foot { padding: 8px 20px 22px; display: grid; gap: 12px; }
.mob-foot .fine { text-align: center; font-size: 13px; color: var(--muted); }
.mob-nav { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 0 14px; }
.mob-nav a { display: grid; justify-items: center; gap: 3px; font-size: 11.5px; color: var(--faint); text-decoration: none; }
.mob-nav a svg { width: 22px; height: 22px; }
.mob-nav a.on { color: var(--green); font-weight: 600; }
.paycard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.paycard .who .k { color: var(--muted); font-size: 14px; }
.paycard .who .n { font-size: 17px; font-weight: 700; margin-top: 2px; }
.paycard .amt { font-size: 28px; font-weight: 700; letter-spacing: -.03em; text-align: right; }
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.methods button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 2px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.methods button.on { border: 2px solid var(--ink); font-weight: 600; padding: 11px 3px; }
.mob .field { font-size: 13.5px; }
.mob input:not([type=checkbox]):not([type=radio]) { padding: 12px 14px; font-size: 15.5px; border-radius: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two > *, .cols > * { min-width: 0; }
.optin { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--green-tint); border: 1px solid var(--green-line); cursor: pointer; }
.optin input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); flex: none; }
.optin b { display: block; font-size: 14.5px; }
.optin span { color: var(--ink-2); font-size: 13.5px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp input { text-align: center; font-size: 22px !important; font-weight: 700; height: 60px; padding: 0 !important; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.brandmark { display: inline-grid; place-items: center; width: 52px; height: 32px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.brandmark.visa { background: #1a1f71; } .brandmark.mc { background: #2b2b2b; } .brandmark.bank { background: var(--green-tint); color: var(--green-ink); }
.done-tick { width: 92px; height: 92px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin: 22px auto 6px; }
.done-tick svg { width: 40px; height: 40px; color: #fff; }
.datechip { width: 44px; height: 44px; border-radius: 9px; background: #eef0ea; display: grid; place-items: center; text-align: center; line-height: 1; font-weight: 700; font-size: 15px; flex: none; }
.datechip small { display: block; font-size: 10px; letter-spacing: .04em; }
.hero-green { background: var(--green); color: #fff; border-radius: 16px; padding: 22px 24px; }
.hero-green .k { font-size: 15px; opacity: .92; }
.hero-green .big { font-size: 44px; font-weight: 800; letter-spacing: -.04em; margin: 4px 0; }
.hero-green .btn { background: #fff; color: var(--green-ink); font-size: 14.5px; }
.hero-green .btn.outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }

/* ===== auth / onboarding split ===== */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-art { background: var(--ink); color: #fff; padding: 36px 56px; display: flex; flex-direction: column; }
.auth-art.green { background: #11291d; }
.auth-art .brand { color: #fff; }
.auth-art h1 { font-size: 46px; line-height: 1.05; letter-spacing: -.035em; margin: auto 0 24px; }
.auth-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 15px; color: #d7dbe2; }
.auth-art li { display: flex; gap: 10px; align-items: center; }
.auth-art li svg { width: 18px; height: 18px; color: var(--green-bright); flex: none; }
.auth-art .foot { margin-top: auto; font-size: 12px; color: #9aa1ad; }
.auth-form { display: grid; place-items: center; padding: 40px; background: #fff; }
.auth-form form { width: min(440px, 100%); display: grid; gap: 14px; }
.auth-form h2 { font-size: 26px; letter-spacing: -.02em; }

/* KYB wizard */
.wiz-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); }
.wiz { display: grid; grid-template-columns: 250px 1fr 300px; gap: 28px; padding: 28px; max-width: 1400px; margin: 0 auto; }
.wiz-steps { display: grid; gap: 6px; align-content: start; }
.wiz-steps .step { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.wiz-steps .step i { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #c5c9c1; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; flex: none; }
.wiz-steps .step.on { background: #fff; color: var(--ink); font-weight: 600; border: 1px solid var(--line); }
.wiz-steps .step.on i { background: var(--ink); color: #fff; border-color: var(--ink); }
.wiz-steps .step.done { color: var(--ink); }
.wiz-steps .step.done i { background: var(--green); border-color: var(--green); color: #fff; }
.wiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-2); }
.aside-card b { display: block; color: var(--ink); margin-bottom: 4px; }
.drop { border: 1.5px dashed #c9cdc4; border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); background: #fff; }
.file { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; font-size: 13px; }
.progress-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.progress-steps .ps { border-top: 4px solid var(--line); padding-top: 10px; font-size: 13px; }
.progress-steps .ps.done { border-color: var(--green); }
.progress-steps .ps.now { border-color: var(--amber-pill); }

/* dark cashier (merchant side demo) */
body.cashier-dark { background: #0f0f1b; color: #f2f3f7; font-family: var(--sans); }
.cd-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 36px; border-bottom: 1px solid #22243a; }
.cd-top .logo-text { font-weight: 700; font-size: 22px; letter-spacing: -.03em; }
.cd-top .bal { display: flex; align-items: center; gap: 12px; color: #aeb2c6; font-size: 15px; }
.cd-top .bal b { color: #fff; }
.cd-top .ava { width: 36px; height: 36px; border-radius: 50%; background: #2a2d4a; }
.cd-modal { width: min(640px, calc(100% - 32px)); margin: 42px auto; background: #17182a; border: 1px solid #2a2c44; border-radius: 18px; padding: 36px 36px 36px; }
.cd-modal h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.cd-x { width: 50px; height: 50px; border-radius: 12px; background: #23253b; border: 0; color: #fff; display: grid; place-items: center; }
.cd-amts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 22px; }
.cd-amts button { background: #1e2033; border: 1px solid #30334d; color: #fff; border-radius: 10px; height: 54px; font-size: 18px; font-weight: 700; }
.cd-amts button.on { border: 2px solid #fff; }
.cd-label { color: #aeb2c6; font-size: 15px; margin: 0 0 8px; }
.cd-input { width: 100%; background: #0f0f1b; border: 1px solid #30334d; border-radius: 10px; height: 60px; padding: 0 18px; color: #fff; font-size: 20px; font-weight: 700; font-family: var(--sans); }
.cd-input:focus { outline: none; border-color: #4b4f73; }
.cd-under { color: #aeb2c6; font-size: 13.5px; margin: 10px 4px 0; }
.cd-or { display: flex; gap: 12px; align-items: center; color: #7d819a; font-size: 13.5px; margin: 26px 0 18px; }
.cd-or::before, .cd-or::after { content: ""; flex: 1; height: 1px; background: #2a2c44; }
.cd-alt { display: flex; justify-content: space-between; align-items: center; background: #1e2033; border: 1px solid #30334d; border-radius: 10px; height: 58px; padding: 0 18px; margin-bottom: 10px; font-weight: 700; font-size: 17px; width: 100%; color: #fff; }
.cd-alt span { color: #aeb2c6; font-weight: 400; font-size: 14.5px; }
.cd-demo { width: min(640px, calc(100% - 32px)); margin: -18px auto 40px; color: #7d819a; font-size: 12.5px; }
.cd-demo summary { cursor: pointer; }
.cd-demo .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cd-demo button { background: #1e2033; border: 1px solid #30334d; color: #cfd2e2; border-radius: 999px; padding: 5px 11px; font-size: 12px; }
.cd-demo .on { border-color: #86efac; color: #86efac; }

/* email (approval) */
.mail { max-width: 640px; margin: 0 auto; background: #fff; }

/* responsive */
@media (max-width: 1100px) {
  .c4, .c5 { grid-template-columns: repeat(2, 1fr); }
  .split, .split.wide, .c-2-1, .c-1-2, .c-3-2 { grid-template-columns: 1fr; }
  .panel { position: static; }
  .wiz { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; }
  .desk-side { position: static; height: auto; flex-direction: column; padding: 12px; }
  .desk-nav { display: flex; overflow-x: auto; gap: 4px; }
  .desk-nav a { white-space: nowrap; }
  .desk-nav a.sub { padding-left: 12px; }
  .desk-foot { display: none; }
  .desk-main { padding: 18px 16px 40px; }
  .desk-head { flex-direction: column; align-items: flex-start; }
  .c2, .c3 { grid-template-columns: 1fr; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 20px; }
  .auth-art h1 { font-size: 34px; margin-top: 40px; }
  .tbl-wrap { overflow-x: auto; }
  .cd-amts { grid-template-columns: repeat(2, 1fr); }
  .cd-modal { padding: 22px; }
}

/* ===== customer app (/me) ===== */
:root { --forest: #0f291c; --forest-2: #183426; }
.mob-top.back { justify-content: flex-start; gap: 14px; }
.mob-top.back h2 { font-size: 17px; }
.mob-top .iconbtn { background: none; border: 0; padding: 4px; display: grid; place-items: center; color: var(--ink); }
.mob-top .iconbtn svg { width: 22px; height: 22px; }
body.signin { background: var(--forest); color: #fff; min-height: 100vh; }
.signin .mob-wrap { background: var(--forest); }
.signin .mob-body { padding: 28px 20px; }
.signin .brand { color: #fff; }
.signin h1 { font-size: 34px !important; line-height: 1.08; letter-spacing: -.035em; margin-top: 72px !important; }
.signin .lead { color: #d5ddd8; font-size: 15.5px; line-height: 1.5; }
.signin .field { color: #fff; }
.signin .btn.outline { color: #fff; border-color: rgba(255,255,255,.35); }
.signin .fine { color: #b9c5be; font-size: 13px; line-height: 1.55; margin-top: auto; }
.mini2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini2 .card { padding: 14px 16px; }
.mini2 .k { font-size: 13px; color: var(--muted); }
.mini2 .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0; }
.mini2 .d { font-size: 12.5px; color: var(--muted); }
.act { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.act:last-child { border-bottom: 0; }
.act .t { font-size: 15px; }
.act .s { font-size: 12.5px; color: var(--muted); }
.act .a { font-weight: 700; font-size: 15px; white-space: nowrap; }
.act .a.plus { color: var(--green-ink); }
.kycstep { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.kycstep .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.kycstep b { font-size: 15px; display: block; }
.kycstep span { font-size: 13.5px; color: var(--muted); }
.idicon { width: 60px; height: 60px; border-radius: 14px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.idicon svg { width: 30px; height: 30px; }
.bigin { display: flex; gap: 10px; }
.bigin input { font-size: 26px !important; font-weight: 700; padding: 14px 16px !important; }
.bigin .btn { padding: 0 20px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg2 button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px; font-weight: 500; color: var(--ink-2); }
.seg2 button.on { border: 2px solid var(--ink); font-weight: 700; color: var(--ink); padding: 11px; }
.tl { display: grid; gap: 14px; }
.tl .i { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.tl .i .c { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.tl .i .c svg { width: 14px; height: 14px; }
.tl .i .c.o { background: #fff; border: 2px solid var(--green); }
.tl .i .w { margin-left: auto; font-size: 13px; color: var(--muted); }
.vcard { background: var(--forest); color: #fff; border-radius: 18px; padding: 20px 22px; display: grid; gap: 10px; box-shadow: 0 10px 24px rgba(15,41,28,.18); }
.vcard .top { display: flex; justify-content: space-between; align-items: center; }
.vcard .top .brand { color: #fff; font-size: 17px; }
.vcard .top span { color: #b9c5be; font-size: 12.5px; }
.vcard .bal .k { color: #b9c5be; font-size: 12.5px; margin-top: 16px; }
.vcard .bal .v { font-size: 34px; font-weight: 800; letter-spacing: -.03em; }
.vcard .pan { font-family: var(--mono); font-size: 14px; letter-spacing: .08em; display: flex; justify-content: space-between; margin-top: 8px; }
.vcard .pan.big { font-size: 20px; margin: 26px 0 18px; }
.vcard .holder { display: flex; justify-content: space-between; align-items: flex-end; font-family: var(--mono); }
.vcard .holder small { display: block; font-family: var(--sans); color: #b9c5be; font-size: 11.5px; }
.vcard .holder b { font-family: var(--sans); font-size: 15px; letter-spacing: .02em; }
.cardrow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.cardrow .sw { width: 50px; height: 32px; border-radius: 6px; background: #404352; flex: none; }
.acts3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.acts3 button { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; display: grid; justify-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.acts3 button svg { width: 20px; height: 20px; }
.acts3 button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.amt4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amt4 button { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 4px; font-size: 16px; font-weight: 700; }
.amt4 button.on { border: 2px solid var(--ink); padding: 11px 3px; }
.paywith { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.paywith.tint { background: var(--green-tint); border-color: var(--green-line); }
.paywith.on { border: 2px solid var(--green); padding: 12px 13px; }
.paywith input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex: none; }
.paywith .t { flex: 1; font-size: 15px; font-weight: 600; }
.paywith .t small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.paywith .r { font-weight: 700; }
.paywith .r.muted { font-weight: 400; font-size: 13px; }

/* onboarding extras */
.auth-form.page { background: var(--page); }
.ref-box { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 10px; background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green-ink); font-size: 14px; }
.ref-box svg { width: 18px; height: 18px; }
.ref-box .mono { margin-left: auto; color: var(--ink-2); }
.registry { background: var(--green-tint); border: 1px solid var(--green-line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.registry .field { color: var(--green-ink); font-weight: 600; }
.person { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.person .ini { width: 40px; height: 40px; border-radius: 50%; background: #eef0ea; display: grid; place-items: center; font-weight: 700; color: var(--ink-2); flex: none; }
.person .ini.ok { background: var(--green-tint); color: var(--green-ink); }
.person .who { flex: 1; } .person .who b { font-size: 15.5px; display: block; }
.dashed { border: 1.5px dashed #c9cdc4; border-radius: 12px; background: transparent; padding: 14px; width: 100%; font-weight: 600; color: var(--ink-2); display: flex; gap: 8px; align-items: center; justify-content: center; }
.dashed svg { width: 18px; height: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tag { display: inline-flex; gap: 6px; align-items: center; background: var(--ink); color: #fff; border-radius: 999px; padding: 5px 10px; font-size: 13.5px; font-weight: 500; }
.tag button { background: none; border: 0; color: #fff; padding: 0; font-size: 13px; line-height: 1; }
.tag.grey { background: #e9ebe5; color: var(--ink-2); }
.tag.add { background: transparent; border: 1px dashed #b9bdb4; color: var(--ink-2); }
.filebar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: #f1f3ee; font-size: 14px; }
.filebar svg { width: 18px; height: 18px; color: var(--green); }
.filebar .r { margin-left: auto; }
.ownbar { height: 8px; border-radius: 999px; background: #86cf9f; overflow: hidden; margin: 10px 0 8px; }
.ownbar i { display: block; height: 100%; background: var(--green); }
.status-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.status-row:last-child { border-bottom: 0; }
.status-row .ic { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.status-row .ic.ok { background: var(--green); color: #fff; }
.status-row .ic.warn { background: var(--amber-pill); color: #2a1a00; font-weight: 800; font-size: 13px; }
.status-row .ic.wait { border: 2px solid var(--green); }
.status-row .ic svg { width: 14px; height: 14px; }
.status-row b { flex: 1; }

/* admin: pages with an edge drawer */
.with-drawer { display: grid; grid-template-columns: minmax(0, 1fr) 400px; margin: -26px -36px -48px; min-height: 100vh; }
.with-drawer.three { grid-template-columns: 260px minmax(0, 1fr) 330px; }
.with-drawer > .content { padding: 26px 32px 40px; min-width: 0; }
.drawer { background: #fff; border-left: 1px solid var(--line); padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.drawer .foot { margin-top: auto; display: grid; gap: 8px; }
.listcol { border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 4px; background: var(--page); }
.listcol a { display: flex; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: 9px; text-decoration: none; font-size: 14.5px; }
.listcol a.on { background: var(--green-tint); font-weight: 600; }
.listcol a .cc { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 26px; }
.orow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.orow .grip { color: #b7bcc4; cursor: grab; } .orow .grip svg { width: 16px; height: 16px; }
.orow .n { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12.5px; flex: none; }
.orow.off { opacity: .6; } .orow.off .n { background: #c9ccc5; }
.orow .t { flex: 1; } .orow .t b { display: block; font-size: 15px; }
.orow .share { color: var(--muted); font-size: 12.5px; width: 90px; line-height: 1.2; }
.orow .pct { font-weight: 700; font-size: 17px; width: 48px; text-align: right; }
.na { display: flex; justify-content: space-between; padding: 10px 14px; border: 1px dashed #c9cdc4; border-radius: 10px; color: var(--muted); font-size: 14px; }
.steps-n { display: grid; gap: 12px; }
.steps-n .i { display: flex; gap: 12px; align-items: flex-start; }
.steps-n .i .n { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.steps-n .i b { display: block; font-size: 14.5px; }
.steps-n .i span { color: var(--muted); font-size: 13px; }
.chip-code { font-family: var(--mono); font-size: 12px; background: #eef0ea; border-radius: 6px; padding: 3px 7px; white-space: nowrap; }
.meter { display: flex; align-items: center; gap: 8px; }
.meter .minibar { flex: 1; height: 6px; }
.hb { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 3px 0; }
.hb .l { width: 100px; } .hb .bar { flex: 1; height: 16px; } .hb .bar i { display: block; height: 100%; border-radius: 3px; } .hb .p { width: 44px; text-align: right; font-weight: 700; }
.dark-panel { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.dark-panel .muted { color: #b8bec9; }
.rank { display: flex; gap: 12px; padding: 6px 0; }
.rank .i { color: var(--green-bright); font-weight: 700; width: 14px; }
.rank .t { flex: 1; } .rank .t b { display: block; } .rank .t span { color: #c7ccd4; font-size: 13px; }
.rank .v { font-weight: 700; }
.tabs-pill { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.tabs-pill a, .tabs-pill button { padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--ink-2); border: 0; background: none; font-size: 14px; }
.tabs-pill .on { background: var(--ink); color: #fff; font-weight: 600; }
@media (max-width: 1100px) { .with-drawer, .with-drawer.three { grid-template-columns: 1fr; margin: 0; } .drawer { position: static; height: auto; border-left: 0; border-radius: var(--radius); border: 1px solid var(--line); } .listcol { border-right: 0; } }

/* phone widths: collapse every layout grid, let wide tables scroll inside their card */
@media (max-width: 860px) {
  .gl [style*="grid-template-columns"], .gl .cols, .gl .two, .gl .c4, .gl .c5 { grid-template-columns: 1fr !important; }
  .gl .card, .gl .panel, .gl .dark-panel, .gl .drawer { overflow-x: auto; max-width: 100%; }
  .gl .desk-main .row, .gl .wiz-foot, .gl .wiz-top { flex-wrap: wrap; }
  .gl .desk-main input[style*="width"], .gl .desk-main select[style*="width"], .gl .inline-in[style*="width"] { width: 100% !important; }
  .gl main[style*="padding:34px 56px"] { padding: 20px 16px !important; }
  .gl .wiz-steps { border-right: 0 !important; padding: 12px 16px !important; display: flex !important; overflow-x: auto; }
  .gl .wiz-steps .step { white-space: nowrap; }
  .gl .wiz-steps .eyebrow { display: none; }
  .gl .desk-main .tbl { min-width: 560px; }
  .gl .progress-steps { grid-template-columns: 1fr 1fr; }
  .gl .desk-head .row { flex-wrap: wrap; }
  .gl .with-drawer > .content { padding: 18px 0; }
  .gl .tabs-pill { flex-wrap: wrap; }
  .gl .cols-chart { overflow-x: auto; }
}
@media (max-width: 860px) {
  .gl .desk > *, .gl [style*="grid-template-columns"] > * { min-width: 0; }
  .gl .desk-nav, .gl .wiz-steps { max-width: calc(100vw - 24px); }
}
@media (max-width: 860px) {
  .gl .person, .gl .orow { flex-wrap: wrap; }
  .gl .orow .share { display: none; }
}
