/* DeshBD Technology - v2 design system
   Colours come from the logo: green, light green and red on a charcoal text colour. */
@font-face {
    font-family: "Bricolage Grotesque";
    src: url("../assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
    font-weight: 200 800; font-display: swap;
}
@font-face {
    font-family: "Hanken Grotesk";
    src: url("../assets/fonts/hanken-grotesk-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900; font-display: swap;
}

:root {
    /* Palette taken from the DeshBD logo: flag green, light hexagon green, flag red, charcoal. */
    --brand-950: #052a1b;
    --brand-900: #07412a;
    --brand-800: #0a6b43;
    --brand-700: #008848;        /* logo green */
    --accent: #008848;
    --accent-text: #00703b;      /* AA on white */
    --accent-soft: #e5f4ec;
    --lime: #8dc63f;             /* logo light green */
    --lime-text: #3f6b12;
    --red: #e81820;              /* logo red */
    --paper: #f4f8f5;
    --white: #fff;
    --line: #dbe6df;
    --text: #1c2420;
    --muted: #55625b;
    --danger: #b3261e;   --danger-soft: #fde8e6;
    --amber: #8a5300;    --amber-soft: #fff1d0;
    --ok: #1d6b2c;       --ok-soft: #e2f4e5;
    --radius: 10px;
    --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
    --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 1rem/1.6 var(--body); color: var(--text); background: var(--white); }
body.area-admin, body.area-portal { background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-text); }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 .5em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; max-width: 68ch; }
:focus-visible { outline: 3px solid #f2a900; outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.icon { flex: none; }
form.inline { margin: 0; display: inline; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 8px;
    background: var(--white); color: var(--text);
    font: 600 .95rem/1.3 var(--body); text-decoration: none; cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--paper); border-color: #b3c7ba; }
.btn-primary { background: #007a41; border-color: #007a41; color: #fff; }
.btn-primary:hover { background: #00613a; border-color: #00613a; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #8d1d17; border-color: #8d1d17; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn-sm { padding: 5px 11px; font-size: .86rem; }
.btn-lg { padding: 13px 24px; font-size: 1.05rem; }
.btn .icon { width: 18px; height: 18px; }
.link-quiet { color: var(--muted); text-decoration: none; font-weight: 500; }
.link-quiet:hover { color: var(--text); text-decoration: underline; }

/* ---------- Alerts & badges ---------- */
.alert { padding: 11px 14px; border-radius: 8px; margin: 0 0 16px; border: 1px solid; max-width: none; }
.alert-success { background: var(--ok-soft); color: var(--ok); border-color: #b7dfbd; }
.alert-error { background: var(--danger-soft); color: #8a1f1a; border-color: #f2b8b3; }
.alert-info { background: var(--accent-soft); color: #0b5a37; border-color: #b9dfc8; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: .8rem; font-weight: 650; white-space: nowrap; background: #e8eeea; color: #3a4560; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-paid, .badge-active, .badge-live, .badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-unpaid, .badge-in_progress, .badge-normal, .badge-pending, .badge-review { background: var(--amber-soft); color: var(--amber); }
.badge-overdue, .badge-suspended, .badge-high, .badge-rejected { background: var(--danger-soft); color: #9a1f19; }
.badge-open { background: var(--accent-soft); color: #0b5a37; }
.badge-closed, .badge-low, .badge-hidden { background: #e8eeea; color: #4b5a52; }

/* ---------- Top navigation (public + portal) ---------- */
.topnav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.topnav-in { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.brand { display: block; height: 64px; flex: none; }
.brand .logo { width: auto; height: 64px; max-width: none; display: block; }
.topnav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.topnav-links > a { padding: 8px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 550; }
.topnav-links > a:hover { background: var(--paper); }
.topnav-links > a[aria-current="page"] { color: var(--accent-text); background: var(--accent-soft); }
.topnav-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.who { color: var(--muted); font-size: .92rem; }
.menu-btn { display: none; margin-left: auto; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); cursor: pointer; }

/* ---------- Public hero + plan picker ---------- */
.hero { background: var(--brand-900); color: #fff; position: relative; overflow: hidden; }
.hero::after {   /* decorative signal rings */
    content: ""; position: absolute; right: -180px; top: -140px; width: 640px; height: 640px; border-radius: 50%;
    border: 1px solid rgba(141, 198, 63, .28);
    box-shadow: 0 0 0 70px rgba(141,198,63,.07), 0 0 0 140px rgba(141,198,63,.05), 0 0 0 210px rgba(141,198,63,.035);
    pointer-events: none;
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 92px; }
.hero h1, .hero .slide-title { margin-top: 0; font-size: clamp(2.3rem, 4.8vw, 3.9rem); font-weight: 800; line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px; }
.hero p.lead { font-size: 1.2rem; color: #cfe6d8; max-width: 34ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.picker { background: #fff; color: var(--text); border-radius: 14px; padding: 22px; box-shadow: 0 24px 60px rgba(2,24,14,.45); }
.picker-title { font: 600 .95rem var(--body); color: var(--muted); margin: 0 0 10px; }
.picker-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.picker-tabs button { flex: 1 1 auto; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 650 .92rem var(--body); color: var(--text); cursor: pointer; }
.picker-tabs button:hover { border-color: var(--accent); }
.picker-tabs button[aria-checked="true"] { background: var(--brand-900); border-color: var(--brand-900); color: #fff; }
.picker-cats { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--paper); border-radius: 10px; }
.picker-cats button { flex: 1; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; font: 650 .92rem var(--body); color: var(--muted); cursor: pointer; }
.picker-cats button[aria-pressed="true"] { background: #fff; color: var(--brand-900); box-shadow: 0 1px 3px rgba(5,40,27,.2); }
.picker-tabs button[hidden] { display: none; }
.plan-group + .plan-group { margin-top: 36px; }
.plan-group h3 { font-size: 1.3rem; margin-bottom: 12px; }
.plan-group h3 small { font: 500 1rem var(--body); margin-left: 8px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list strong { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; }
.speed { display: flex; align-items: baseline; gap: 10px; }
.speed-num { font: 800 clamp(3.4rem, 8vw, 5.4rem)/1 var(--display); letter-spacing: -.045em; color: var(--brand-800); font-variant-numeric: tabular-nums; }
.speed-unit { font: 600 1.3rem var(--display); color: var(--muted); }
.meter { display: flex; gap: 5px; align-items: flex-end; height: 44px; margin: 16px 0 14px; }
.meter i { flex: 1; border-radius: 3px; background: #e2ebe5; transition: background-color .35s, height .35s; height: 30%; }
.meter i:nth-child(2) { height: 40%; } .meter i:nth-child(3) { height: 50%; } .meter i:nth-child(4) { height: 60%; }
.meter i:nth-child(5) { height: 72%; } .meter i:nth-child(6) { height: 82%; } .meter i:nth-child(7) { height: 92%; } .meter i:nth-child(8) { height: 100%; }
.meter i.on { background: var(--lime); }
.picker-price { font: 700 1.5rem var(--display); margin: 0 0 4px; }
.picker-price small { font: 500 1rem var(--body); color: var(--muted); }
.picker-for { color: var(--muted); margin: 0 0 18px; min-height: 3em; }
.picker .btn { width: 100%; }

/* ---------- Public sections ---------- */
.section { padding: 72px 0; }
.section.tint { background: var(--paper); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 28px 1fr; gap: 14px; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points .icon { color: var(--accent-text); margin-top: 3px; }
.points h3 { margin: 0 0 2px; }
.points p { margin: 0; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 8px; }
.facts h3 { color: var(--brand-700); }
.page-hero { background: var(--brand-900); color: #fff; padding: 56px 0 48px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 8px; }
.page-hero p { color: #cfe6d8; margin: 0; font-size: 1.1rem; }
.photo { width: 100%; border-radius: 12px; display: block; }
.stack > * + * { margin-top: 20px; }
.cta-band { background: var(--accent-soft); padding: 48px 0; }
.cta-band .wrap { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: 1.6rem; }

.site-footer { background: var(--brand-950); color: #a9c4b4; padding: 40px 0 24px; margin-top: 0; }
body.area-portal .site-footer { background: none; color: var(--muted); padding: 24px 0 32px; }
.foot-grid { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-family: var(--display); font-size: 1.2rem; }
.site-footer p { margin: 6px 0 0; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.site-footer nav a { color: #d6e8dc; text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.fine { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 4px; }
.form label { font-weight: 650; margin-top: 12px; font-size: .95rem; }
.form label small, .hint { font-weight: 400; color: var(--muted); font-size: .86rem; }
.form .actions { margin-top: 20px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"],
input[type="search"], input[type="number"], select, textarea {
    width: 100%; padding: 9px 12px; border: 1px solid #b6c8bd; border-radius: 8px; font: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid rgba(0,136,72,.25); outline-offset: 0; }
.form-narrow { max-width: 460px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.check { display: flex; gap: 8px; align-items: center; margin-top: 14px; font-weight: 500; }
.check input { width: auto; }

.auth { min-height: 70vh; display: grid; place-items: center; padding: 48px 0; background: var(--paper); }
.auth-card { width: min(420px, 100% - 40px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 4px; }
.auth-card .btn { width: 100%; margin-top: 20px; }
.auth-card .switch { margin: 18px 0 0; text-align: center; font-size: .92rem; color: var(--muted); }

/* ---------- Admin shell ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--brand-900); color: #c6dccf; padding: 18px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-brand { display: block; width: 100%; border-radius: 8px; background: #fff; margin: 0 0 10px; padding: 8px 10px; text-align: center; }
.side-brand .logo { height: 72px; width: auto; max-width: 100%; display: inline-block; vertical-align: top; }
.side-group { margin: 18px 10px 6px; font-size: .82rem; color: #8fb3a0; font-weight: 600; max-width: none; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: #e0eee5; text-decoration: none; font-weight: 550; font-size: .96rem; border: 0; background: none; width: 100%; cursor: pointer; font-family: inherit; }
.side-link:hover { background: rgba(255,255,255,.08); }
.side-link[aria-current="page"] { background: #fff; color: var(--brand-900); }
.side-count { margin-left: auto; background: #f2a900; color: #2b1e00; border-radius: 99px; padding: 0 8px; font-size: .78rem; font-weight: 700; line-height: 1.5; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.side-foot .who { display: block; padding: 0 10px 6px; color: #8fb3a0; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 22px 32px 10px; }
.topbar h1 { font-size: 1.7rem; font-weight: 750; margin: 0; }
.subtitle { margin: 2px 0 0; color: var(--muted); }
.view { padding: 12px 32px 48px; }

/* panels, kpis, tables */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel > h2, .panel-head h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.panel-head h2 { margin: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush .panel-head { padding: 16px 22px 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.kpi { padding: 18px 22px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi-label { display: block; color: var(--muted); font-size: .9rem; }
.kpi-value { display: block; font: 750 2rem/1.15 var(--display); letter-spacing: -.03em; margin: 2px 0; font-variant-numeric: tabular-nums; }
.kpi-note { color: var(--muted); font-size: .86rem; }
.kpi-note.warn { color: var(--danger); font-weight: 600; }
.cols-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.cols-2.even { grid-template-columns: 1fr 1fr; }
.chart-box { position: relative; height: 270px; }
.chart-box.short { height: 230px; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data th { text-align: left; font-weight: 600; font-size: .85rem; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #fbfcfe; }
.data td { padding: 11px 14px; border-bottom: 1px solid #ecf2ee; vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover td { background: #f7fbf8; }
.data td.right, .data th.right { text-align: right; }
.data .row-actions { white-space: nowrap; text-align: right; }
.data a.title { font-weight: 650; color: var(--text); text-decoration: none; }
.data a.title:hover { color: var(--accent-text); text-decoration: underline; }
.empty { padding: 32px 22px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 4px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.toolbar .grow { flex: 1 1 260px; max-width: 420px; position: relative; }
.toolbar form { display: contents; }
.toolbar select { width: auto; }
.toolbar .spacer { margin-left: auto; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs a { padding: 6px 14px; border-radius: 99px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; border: 1px solid transparent; }
.tabs a:hover { color: var(--text); background: #fff; }
.tabs a[aria-current="true"] { background: #fff; border-color: var(--line); color: var(--text); }

.details { display: grid; grid-template-columns: 8em 1fr; gap: 8px 16px; margin: 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 550; }

/* tickets */
.thread { display: grid; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: #fff; max-width: 78ch; }
.msg.staff { background: var(--accent-soft); border-color: #bfdfcc; margin-left: 32px; }
.msg-head { display: flex; justify-content: space-between; gap: 10px; font-size: .88rem; color: var(--muted); margin-bottom: 4px; flex-wrap: wrap; }
.msg-head strong { color: var(--text); }
.msg p { margin: 0; max-width: none; }

/* plans admin + public price table */
.plan-table th, .plan-table td { white-space: nowrap; }
.price-big { font: 750 1.2rem var(--display); }

/* invoice document */
.invoice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 800px; }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.invoice-head .brand { margin: 0; height: 84px; }
.invoice-head .brand .logo { height: 84px; }
.invoice h2 { margin: 0; font-size: 1.6rem; }
.invoice .meta { text-align: right; color: var(--muted); }
.invoice .meta strong { color: var(--text); }
.invoice-total { display: flex; justify-content: flex-end; gap: 24px; font: 750 1.4rem var(--display); padding-top: 14px; }
.stamp { display: inline-block; border: 3px solid var(--ok); color: var(--ok); border-radius: 8px; padding: 2px 14px; font: 800 1.3rem var(--display); transform: rotate(-4deg); }
.portal-main { padding: 28px 0 48px; }
.portal-main h1 { font-size: 1.9rem; font-weight: 750; }
.balance { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.balance .big { font: 800 2.6rem/1 var(--display); letter-spacing: -.035em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
    .hero-in, .split, .cols-2, .cols-2.even { grid-template-columns: 1fr; }
    .hero-in { padding: 56px 0 64px; gap: 36px; }
    .facts { grid-template-columns: 1fr; gap: 20px; }
    .kpis { grid-template-columns: 1fr 1fr; }
    .kpi:nth-child(3) { border-left: 0; }
    .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
    .menu-btn { display: inline-flex; }
    .topnav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 16px; flex-direction: column; align-items: stretch; }
    .topnav-links.open { display: flex; }
    .topnav-actions { margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--line); flex-wrap: wrap; }
    .app { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
    .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(4,30,18,.5); }
    .topbar { padding: 16px 16px 6px; }
    .topbar .menu-btn { margin-left: 0; }
    .view { padding: 8px 16px 40px; }
    .form-grid { grid-template-columns: 1fr; }
    .msg.staff { margin-left: 0; }
}
@media (max-width: 520px) { .kpis { grid-template-columns: 1fr; } .kpi { border-left: 0 !important; border-top: 1px solid var(--line); } .kpi:first-child { border-top: 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Print (invoices) ---------- */
/* ---- Payments and sign-up ---- */
.auth-card.wide { width: min(680px, 100% - 40px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wallets { display: grid; gap: 12px; margin: 6px 0 18px; border: 0; padding: 0; }
.wallet { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; }
.wallet:has(input:checked) { border-color: var(--wc, var(--brand-900)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--wc, #07412a) 16%, transparent); }
.wallet input { margin-top: 5px; }
.wallet-name { font-weight: 700; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wallet-name i { width: 10px; height: 10px; border-radius: 50%; background: var(--wc, #07412a); display: inline-block; }
.wallet-name small { font-weight: 500; color: var(--muted); }
.wallet-num { font: 700 1.35rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.form .wallet { font-weight: 400; margin: 0; }
.wallet-how { color: var(--muted); font-size: .92rem; margin: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.mismatch { color: #9a1f19; font-size: .85rem; font-weight: 600; white-space: normal; }
.pay-actions { display: grid; gap: 8px; min-width: 250px; }
.pay-actions form { display: flex; gap: 6px; }
.pay-actions input[type=text] { flex: 1; min-width: 0; padding: 6px 10px; font-size: .9rem; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
@media print {
    body { background: #fff !important; }
    .topnav, .sidebar, .topbar, .toolbar, .site-footer, .no-print, .skip, .menu-btn, .alert { display: none !important; }
    .app { display: block; }
    .view, .portal-main { padding: 0 !important; }
    .invoice { border: 0; padding: 0; max-width: none; }
    .wrap { width: 100%; }
}

/* Brand stripe: green, light green, red (the logo's colours) */
.topnav { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topnav::after, .site-footer::before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, var(--brand-700) 0 68%, var(--lime) 68% 90%, var(--red) 90% 100%); }
.site-footer { position: relative; }
.site-footer::before { position: absolute; top: 0; left: 0; right: 0; }

/* ---- Hero slider ---- */
.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.slider-ctl { display: flex; align-items: center; gap: 12px; margin-top: 34px; }
.slider-ctl[hidden] { display: none; }
.slider-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #fff; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.slider-btn:hover { background: rgba(255,255,255,.14); }
.slider-btn .icon { width: 18px; height: 18px; }
.slider-dots { display: flex; gap: 8px; align-items: center; padding: 0 4px; }
.slider-dots button { position: relative; width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s ease, background .25s ease; }
.slider-dots button::after { content: ""; position: absolute; inset: -10px -4px; }
.slider-dots button[aria-current="true"] { width: 30px; background: var(--lime); }
.ico-play { display: none; }
.hero-slider[data-paused] .ico-pause { display: none; }
.hero-slider[data-paused] .ico-play { display: inline-grid; }
.auth-alt { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.auth-alt p { margin: 0 0 10px; color: var(--muted); font-size: .95rem; }
.auth-alt .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) { .slide { transform: none; } }

/* ---- Public footer ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.btn-lime { background: var(--lime); border-color: var(--lime); color: #0a2a1a; font-weight: 700; }
.btn-lime:hover { background: #a3d65a; border-color: #a3d65a; color: #0a2a1a; }
.btn-lime .icon { width: 18px; height: 18px; }

.site-footer.site-footer-rich { padding: 0; margin-top: 0; color: #b9d3c4;
    background: radial-gradient(900px 340px at 88% -8%, rgba(141,198,63,.16), transparent 62%),
                radial-gradient(700px 300px at 0% 110%, rgba(0,136,72,.30), transparent 60%), var(--brand-950); }
.site-footer-rich .foot-main { display: grid; grid-template-columns: 1.55fr .85fr .85fr 1.35fr; gap: 48px; padding: 68px 0 48px; }
.site-footer-rich nav { display: block; }
.site-footer-rich p { margin: 0; }
.foot-logo { display: inline-block; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.foot-logo .logo { display: block; height: 68px; width: auto; }
.foot-about p { margin-top: 20px; max-width: 38ch; line-height: 1.65; }
.foot-pills { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(255,255,255,.05); color: #e0eee5; font-size: .84rem; font-weight: 600; }
.foot-pills .icon { width: 15px; height: 15px; color: var(--lime); }
.foot-col h3 { margin: 0 0 18px; color: #fff; font: 700 .8rem var(--body); letter-spacing: .14em; text-transform: uppercase; }
.foot-col h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 10px; border-radius: 2px; background: var(--lime); }
.foot-links, .foot-contact { list-style: none; margin: 0; padding: 0; }
.foot-links { display: grid; gap: 11px; }
.foot-links a { color: #cfe3d6; text-decoration: none; display: inline-block; transition: color .15s ease, transform .15s ease; }
.foot-links a:hover, .foot-links a:focus-visible { color: #fff; transform: translateX(4px); }
.foot-contact li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; margin-bottom: 15px; line-height: 1.5; color: #cfe3d6; }
.foot-contact .icon { width: 20px; height: 20px; color: var(--lime); margin-top: 2px; }
.foot-contact a { color: #fff; text-decoration: none; }
.foot-contact a:hover { text-decoration: underline; }
.foot-col .btn-lime { margin-top: 6px; }

.foot-bar { border-top: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.16); }
.foot-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 18px 0; font-size: .9rem; color: #94b5a2; }
.foot-pay { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.foot-pay li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e0eee5; font-weight: 600; font-size: .84rem; }
.foot-pay li.foot-pay-label { background: none; padding-left: 0; color: #94b5a2; font-weight: 500; }
.foot-pay i { width: 9px; height: 9px; border-radius: 50%; background: var(--wc); box-shadow: 0 0 0 2px rgba(255,255,255,.35); }
.foot-top { display: inline-flex; align-items: center; gap: 6px; color: #e0eee5; text-decoration: none; font-weight: 600; }
.foot-top .icon { width: 16px; height: 16px; transition: transform .15s ease; }
.foot-top:hover .icon { transform: translateY(-3px); }
@media (max-width: 1000px) {
    .site-footer-rich .foot-main { grid-template-columns: 1fr 1fr; gap: 40px 32px; padding: 52px 0 36px; }
    .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .site-footer-rich .foot-main { grid-template-columns: 1fr; }
    .foot-bar-in { flex-direction: column; align-items: flex-start; }
}

/* ---- Staff and roles ---- */
.badge-admin { background: var(--brand-900); color: #fff; }
.badge-manager { background: var(--ok-soft); color: var(--ok); }
.badge-billing { background: var(--amber-soft); color: var(--amber); }
.badge-support { background: #e8eeea; color: #4b5a52; }
.who-role { display: block; font-size: .8rem; color: #8fb3a0; margin-top: 2px; }
.you { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .75rem; font-weight: 700; }
.role-help { margin: 8px 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.role-help strong { color: var(--text); }
.perm-table th, .perm-table td { text-align: center; }
.perm-table th:first-child, .perm-table td:first-child { text-align: left; white-space: normal; }
.perm-table .yes { color: var(--ok); }
.perm-table .yes .icon { width: 18px; height: 18px; }
.perm-table .no { color: #b3c2b9; }
