/* Cheko Billing — sky blue, white, navy */
:root {
  --f-head: 'Space Grotesk', Inter;
  --f-ui: Inter;
  --ink: #0B2545;
  --blue: #0369A1;
  --blue-dark: #075985;
  --sky: #38BDF8;
  --sky-300: #7DD3FC;
  --sky-200: #BAE6FD;
  --sky-100: #E0F2FE;
  --ground: #F0F9FF;
  --white: #FFFFFF;
  --muted: #475569;
  --warn: #B45309;
  --warn-bg: #FEF3C7;
  --warn-ink: #7A3A05;
  --bad: #B42318;
  --bad-bg: #FEE4E2;
  --bad-ink: #912018;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--ground); font-size: 16px; line-height: 1.5; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -0.03em; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.bold { font-weight: 700; }
.right { text-align: right; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* Layout */
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.page { padding-top: 36px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 28px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.row-end { align-items: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.push { margin-left: auto; }
.mt-auto { margin-top: auto; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split > .main { flex: 999 1 560px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; }
.grid { display: grid; gap: 16px; }
.g-150 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.g-200 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.g-240 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* Top bar */
.topbar { background: var(--white); border-bottom: 2px solid var(--sky-200); }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand .dot { width: 34px; height: 34px; border-radius: 999px; background: var(--sky); border: 3px solid var(--ink); }
.brand em { font-style: normal; color: var(--blue); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
.nav a { padding: 10px 16px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { background: var(--sky-100); }
.nav a.on { background: var(--ink); color: var(--white); }
.who { padding: 10px 16px; border-radius: 999px; background: var(--sky-100); font-weight: 700; font-size: 14px; }
.linkbtn { background: none; border: 0; padding: 10px 4px; font: 600 14px var(--body); color: var(--blue); cursor: pointer; text-decoration: underline; }
.banner { background: var(--ink); color: var(--white); font-size: 14px; }
.banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.banner .linkbtn { color: var(--sky-300); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font: 700 15px var(--body); text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #12345E; color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--sky-100); color: var(--ink); }
.btn-white { background: var(--white); color: var(--ink); }
.btn-danger { background: var(--bad); color: var(--white); }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.btn svg { flex: none; }

/* Cards */
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 28px; }
.card-sky { background: var(--sky); }
.card-navy { background: var(--ink); color: var(--white); }
.card-warn { border-color: var(--warn); }
.card-bad { border-color: var(--bad); }
.card-dashed { border: 2px dashed var(--sky-300); border-radius: 20px; padding: 20px 24px; background: var(--white); }
.card-flush { padding: 0; overflow: hidden; }
.pad { padding: 22px 24px; }
.pop { box-shadow: 6px 6px 0 var(--ink); }
.pop-sky { box-shadow: 6px 6px 0 var(--sky); }
.tile { border-radius: 20px; padding: 20px; }
.tile .big { font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }

/* Badges */
.badge { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--sky-100); color: var(--ink); white-space: nowrap; }
.badge.caps { letter-spacing: 0.06em; text-transform: uppercase; }
.badge.ok { background: var(--sky-100); }
.badge.warn { background: var(--warn-bg); color: var(--warn-ink); }
.badge.bad { background: var(--bad-bg); color: var(--bad-ink); }
.badge.muted { background: #F1F5F9; color: #334155; }
.badge.dark { background: var(--ink); color: var(--white); }
.badge.sky { background: var(--sky); color: var(--ink); }

/* Hero */
.hero { background: var(--sky); border-bottom: 2px solid var(--ink); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 32px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 60px); line-height: 0.98; }
.steps { margin: 0; flex: 1 1 300px; }
.steps div { display: flex; gap: 14px; align-items: baseline; }
.steps dt { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--blue); }
.steps dd { margin: 0; font-weight: 600; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 14px; font-weight: 700; }
.input, select.input { min-height: 48px; padding: 0 16px; border: 2px solid var(--sky-300); border-radius: 14px; font: 500 16px var(--body); color: var(--ink); background: var(--white); width: 100%; }
.input:focus { border-color: var(--blue); outline: none; }
.input-sm { min-height: 44px; padding: 0 12px; font-size: 15px; }
.error { color: var(--bad-ink); font-size: 14px; font-weight: 600; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
input[type=radio], input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }

/* Choice cards (radio) */
.choice { border: 2px solid var(--sky-200); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: var(--white); }
.choice:has(input:checked) { border-color: var(--blue); background: var(--sky-100); }
.choice .big { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.choice.wide { flex-direction: row; align-items: flex-start; gap: 10px; }
.chip { min-height: 48px; padding: 0 18px; border: 2px solid var(--sky-200); border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; cursor: pointer; background: var(--white); }
.chip:has(input:checked) { border-color: var(--blue); background: var(--sky-100); }
.filter { min-height: 44px; padding: 0 18px; border: 2px solid var(--sky-200); border-radius: 999px; display: inline-flex; align-items: center; background: var(--white); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.filter.on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Bundles / tiles as links */
.bundle { border: 2px solid var(--sky-200); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); background: var(--white); }
.bundle:hover { border-color: var(--blue); color: var(--ink); }
.bundle .big { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.1; }
.bundle.dashed { border-style: dashed; border-color: var(--sky-300); }
.quick { min-height: 56px; border: 2px solid var(--sky-200); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; padding: 6px; text-align: center; }
.quick:hover { border-color: var(--blue); color: var(--ink); }
.quick span { font-weight: 500; font-size: 12px; color: var(--muted); }

/* Feature product card (PoaSMS) */
.feature { display: flex; flex-wrap: wrap; padding: 0; overflow: hidden; }
.feature > .lead { flex: 1 1 300px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.feature > .rest { flex: 999 1 480px; min-width: 0; padding: 28px; align-content: center; }
.wallet { display: flex; flex-wrap: wrap; padding: 0; overflow: hidden; border-radius: 28px; }
.wallet > .lead { flex: 999 1 420px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.wallet > .rest { flex: 1 1 320px; min-width: 0; background: var(--white); border-left: 2px solid var(--ink); padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.balance { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 9vw, 84px); line-height: 0.9; letter-spacing: -0.04em; }
.amount { font-family: var(--display); font-weight: 800; font-size: 30px; white-space: nowrap; }
.amount-xl { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 56px); line-height: 1; letter-spacing: -0.03em; }

/* Meter */
.meter { height: 12px; border-radius: 999px; background: var(--sky-100); overflow: hidden; }
.meter > i { display: block; height: 100%; min-width: 10px; border-radius: 999px; background: var(--blue); }
.meter.warn { background: var(--warn-bg); }
.meter.warn > i { background: var(--warn); }
.meter.on-sky { background: var(--white); border: 2px solid var(--ink); max-width: 420px; }
.meter.on-sky > i { background: var(--ink); }

/* Lists & tables */
.plain { margin: 0; padding: 0; list-style: none; }
.lines > * { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 11px 0; border-top: 1px solid var(--sky-200); }
dl.sum { margin: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
dl.sum > div { display: flex; justify-content: space-between; gap: 12px; }
dl.sum dt { color: var(--muted); }
dl.sum dd { margin: 0; font-weight: 700; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px dashed var(--sky-300); padding-top: 16px; }
.scroll-x { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 13px; font-weight: 700; padding: 13px 12px; background: var(--sky-100); white-space: nowrap; }
.table td { padding: 13px 12px; border-top: 1px solid var(--sky-200); vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 24px; }
.table th:last-child, .table td:last-child { padding-right: 24px; }
.table tr.hl td { background: #FFFBEB; }
.table .acts { text-align: right; white-space: nowrap; }
.table .acts form { display: inline; }
.table .acts a:not(.btn), .table .acts button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font: 700 14px var(--body); background: none; border: 0; color: var(--blue); cursor: pointer; text-decoration: underline; }
.table .acts .danger { color: #A1241A; }
.table .input { min-height: 40px; padding: 0 10px; font-size: 15px; border-radius: 10px; min-width: 90px; }
.timeline { margin: 0; padding: 0 0 0 18px; border-left: 2px solid var(--sky-300); list-style: none; display: flex; flex-direction: column; gap: 18px; font-size: 14px; }
.timeline li { display: flex; flex-direction: column; gap: 2px; }
.actions3 a, .actions3 button { border: 2px solid var(--ink); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; background: var(--white); color: var(--ink); text-align: left; font: inherit; cursor: pointer; width: 100%; }
.actions3 .t { font-family: var(--display); font-weight: 800; font-size: 24px; }
.actions3 .go { background: var(--blue); color: var(--white); }
.actions3 .stop { border-color: var(--bad); }
.actions3 .stop .t { color: #A1241A; }

/* Flash */
.flash { background: var(--white); border: 2px solid var(--blue); border-radius: 16px; padding: 14px 18px; font-size: 15px; font-weight: 600; }
.flash.bad { border-color: var(--bad); color: var(--bad-ink); }
.pager { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 700; }

/* Waiting for payment */
.center { max-width: 560px; margin: 0 auto; text-align: center; align-items: center; }
.pulse { width: 72px; height: 72px; border-radius: 999px; background: var(--sky); border: 3px solid var(--ink); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }
.sandbox { border: 2px dashed var(--warn); border-radius: 16px; padding: 16px; background: #FFFBEB; width: 100%; }

/* Admin shell */
.admin { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
.sidebar { flex: 1 1 230px; max-width: 100%; background: var(--ink); color: var(--white); padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; }
.sidebar .brand { color: var(--white); font-size: 20px; padding: 0 8px; }
.sidebar .brand .dot { width: 32px; height: 32px; border-color: var(--white); }
.sidebar .brand em { color: var(--sky-300); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a { padding: 12px 14px; border-radius: 12px; color: var(--sky-100); font-weight: 500; font-size: 15px; text-decoration: none; }
.sidebar nav a:hover { background: #12345E; }
.sidebar nav a.on { background: var(--sky); color: var(--ink); font-weight: 700; }
.sidebar .linkbtn { color: var(--sky-300); text-align: left; padding: 12px 14px; }
.admin > main { flex: 999 1 560px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.admin h1 { font-size: 40px; line-height: 1; }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .card { padding: 20px; border-radius: 20px; }
  .wallet > .rest { border-left: 0; border-top: 2px solid var(--ink); }
  .admin > main { padding: 20px 16px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 40px; }
}

/* Quantity stepper (top-up) */
.stepper { display: flex; border: 2px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--white); }
.stepper button { flex: none; width: 64px; min-height: 64px; border: 0; background: var(--white); color: var(--ink); font: 700 28px var(--body); cursor: pointer; }
.stepper button:hover:not(:disabled) { background: var(--sky-100); }
.stepper button:disabled { color: #94A3B8; cursor: not-allowed; }
.stepper input { flex: 1 1 auto; min-width: 0; border: 0; border-left: 2px solid var(--sky-200); border-right: 2px solid var(--sky-200); text-align: center; font: 800 32px var(--display); color: var(--ink); background: var(--white); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus { outline: 3px solid var(--blue); outline-offset: -3px; }
button.filter { cursor: pointer; font-family: var(--body); }
.priceline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; background: var(--ground); border-radius: 16px; padding: 18px 20px; font-size: 16px; }
.priceline strong { font-family: var(--display); font-weight: 800; font-size: 24px; white-space: nowrap; }

/* ------------------------------------------------------------------
   Panel layout: sidebar shell, tabs, tables, lighter cards
   ------------------------------------------------------------------ */
.card { border: 1px solid var(--sky-200); border-radius: 16px; padding: 24px; }
.card-sky, .card-navy { border-color: var(--ink); }
.card-warn { border-color: var(--warn); }
.card-bad { border-color: var(--bad); }
.card-flush { padding: 0; }
.pop, .pop-sky { box-shadow: none; }
.card-dashed { border-width: 1px; border-radius: 16px; }
.btn-outline { border-width: 1px; }
.btn-xs { min-height: 40px; padding: 0 16px; font-size: 14px; }
.input { border-width: 1px; }
.choice, .chip, .filter, .bundle, .quick { border-width: 1px; }
.stepper { border-width: 1px; border-radius: 14px; }
.stepper input { border-left-width: 1px; border-right-width: 1px; }
.table td { border-top-color: var(--sky-100); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.shell { display: flex; flex-wrap: wrap; align-items: stretch; min-height: 100vh; }
.side-nav { flex: 0 0 250px; background: var(--white); border-right: 1px solid var(--sky-200); padding: 20px 14px; display: flex; flex-direction: column; gap: 22px; }
.side-nav .brand { font-size: 20px; padding: 0 10px; }
.side-nav .brand .dot { width: 32px; height: 32px; }
.side-nav nav { display: flex; flex-direction: column; gap: 18px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 0 12px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--muted); }
.side-nav nav a { padding: 11px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-nav nav a:hover { background: var(--ground); }
.side-nav nav a.on { background: var(--sky-100); font-weight: 700; }
.side-nav .count { padding: 2px 9px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.shell-main { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.shell-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; padding: 16px 32px 0; }
.shell-main .wrap { max-width: 1240px; margin: 0; padding: 0 32px; }
.shell-main .page { padding-top: 16px; gap: 22px; }
.shell-main h1 { font-size: 32px; letter-spacing: -0.02em; }

.tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; border-bottom: 1px solid var(--sky-200); }
.tabs a { padding: 12px 4px; font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); font-weight: 700; border-bottom-color: var(--blue); }

.status { white-space: nowrap; font-weight: 500; }
.status::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 999px; background: var(--blue); margin-right: 8px; }
.status.warn::before { background: var(--warn); border-radius: 2px; }
.status.bad::before { background: var(--bad); border-radius: 2px; }
.status.muted { color: var(--muted); }
.status.muted::before { background: transparent; border: 2px solid #64748B; box-sizing: border-box; }
.status.busy::before { background: transparent; border: 2px solid var(--blue); box-sizing: border-box; }
.status-note { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; white-space: normal; }

.menu { position: relative; display: inline-block; text-align: left; }
.menu > summary { list-style: none; width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; cursor: pointer; color: var(--ink); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--sky-100); }
.menu-list { position: absolute; right: 0; top: 46px; z-index: 20; min-width: 210px; background: var(--white); border: 1px solid var(--sky-200); border-radius: 12px; padding: 6px; box-shadow: 0 8px 24px rgba(11, 37, 69, 0.14); display: flex; flex-direction: column; }
.menu-list a, .menu-list button { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; border: 0; background: none; width: 100%; text-align: left; font: 500 15px var(--body); color: var(--ink); text-decoration: none; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--ground); color: var(--ink); }
.menu-list .danger { color: #A1241A; }
.table td.rowacts { white-space: nowrap; padding-top: 8px; padding-bottom: 8px; }
.table td.rowacts form { display: inline; }
.table td.rowacts .btn + .btn, .table td.rowacts .btn + form, .table td.rowacts form + .btn { margin-left: 6px; }
.table a.name { font-weight: 700; text-decoration: none; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 20px; }
.facts > div { display: flex; flex-direction: column; gap: 4px; }
.facts dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; font-size: 13px; color: var(--muted); }
.facts dd.v { font-size: 17px; font-weight: 700; color: var(--ink); }

.mobile-bar, .nav-backdrop, .nav-close, .side-foot { display: none; }

/* Phones and small tablets: compact top bar, sidebar becomes a drawer. */
@media (max-width: 900px) {
  .shell, .admin { display: block; }
  .mobile-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 40; padding: 8px 12px; background: var(--white); border-bottom: 1px solid var(--sky-200); }
  .mobile-bar .brand { font-size: 19px; margin-right: auto; min-width: 0; }
  .mobile-bar .brand .dot { width: 28px; height: 28px; flex: none; }
  .mobile-bar.dark { background: var(--ink); border-bottom-color: var(--ink); }
  .mobile-bar.dark .brand { color: var(--white); }
  .mobile-bar.dark .brand .dot { border-color: var(--white); }
  .mobile-bar.dark .brand em { color: var(--sky-300); }
  .nav-toggle { flex: none; width: 44px; height: 44px; border: 1px solid var(--sky-200); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .nav-toggle span { position: relative; }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .mobile-bar.dark .nav-toggle { background: transparent; border-color: #2B4A75; color: var(--white); }

  .side-nav, .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(300px, 86vw); max-width: none; overflow-y: auto; padding: 14px; gap: 18px; border-right: 0; box-shadow: 0 0 40px rgba(11, 37, 69, 0.25); transform: translateX(-100%); visibility: hidden; transition: transform 0.2s ease, visibility 0.2s; }
  .nav-open .side-nav, .nav-open .sidebar { transform: none; visibility: visible; }
  .sidebar nav { flex-direction: column; flex-wrap: nowrap; }
  .nav-open .nav-backdrop { display: block; position: fixed; inset: 0; z-index: 50; border: 0; padding: 0; background: rgba(11, 37, 69, 0.45); }
  body.nav-open { overflow: hidden; }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 12px; right: 10px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: none; color: inherit; font-size: 28px; line-height: 1; cursor: pointer; }
  .side-nav .nav-close:hover { background: var(--ground); }
  .side-nav nav a { padding: 13px 12px; font-size: 16px; }
  .side-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--sky-200); }

  .shell-top { display: none; }
  .shell-main .wrap { padding: 0 16px; }
  .shell-main .page { padding-top: 20px; }
  .shell-main h1 { font-size: 28px; }
  .menu-list { right: auto; left: -160px; }
}
@media (prefers-reduced-motion: reduce) { .side-nav, .sidebar { transition: none; } }

/* A table whose row menus must be able to overflow the card (wide screens). */
@media (min-width: 901px) {
  .card.table-free { overflow: visible; }
  .table-free .table thead th:first-child { border-top-left-radius: 15px; }
  .table-free .table thead th:last-child { border-top-right-radius: 15px; }
}

/* Contain absolutely positioned children (screen-reader text, menus) so a
   scrolling table never widens the page itself. */
.scroll-x { position: relative; }

/* Phones: table rows stack as cards (labels are set by the layout script). */
@media (max-width: 640px) {
  .scroll-x:has(> .table.stacked) { overflow: visible; }
  table.table.stacked { min-width: 0 !important; display: block; }
  .table.stacked thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table.stacked tbody { display: block; }
  .table.stacked tr { display: block; padding: 14px 20px; border-top: 1px solid var(--sky-200); }
  .table.stacked tbody tr:first-child { border-top: 0; }
  .pad + .table.stacked tbody tr:first-child { border-top: 1px solid var(--sky-200); }
  .table.stacked tr.hl { background: #FFFBEB; }
  .table.stacked td, .table.stacked td:first-child, .table.stacked td:last-child { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding: 5px 0; border: 0; background: none; text-align: right; white-space: normal; }
  .table.stacked td[data-label]::before { content: attr(data-label); flex: none; font-size: 13px; font-weight: 700; color: var(--muted); text-align: left; }
  .table.stacked td.lead { display: block; text-align: left; font-size: 17px; font-weight: 700; padding-bottom: 8px; }
  .table.stacked td.lead .tiny, .table.stacked td.lead .small { font-weight: 500; }
  .table.stacked td[colspan] { display: block; text-align: left; }
  .table.stacked td:empty { display: none; }
  .table.stacked td .input { flex: 1 1 140px; max-width: 60%; }
  .table.stacked .menu-list { left: auto; right: 0; }
}

/* Monthly bar chart (admin revenue) */
.bars { display: flex; align-items: stretch; gap: 6px; height: 220px; }
.bar { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; text-align: center; }
.bar > i { display: block; width: 100%; max-width: 56px; border-radius: 6px 6px 0 0; background: var(--blue); }
.bar > span { white-space: nowrap; }
@media (max-width: 640px) { .bar > span:first-child { display: none; } .bars { gap: 3px; height: 160px; } }

/* Currency picker */
.currency { display: inline-flex; align-items: center; gap: 6px; }
.currency select { width: auto; min-width: 84px; border-radius: 999px; font-weight: 700; }

/* Uploaded logo and the contact footer */
.logo-preview { max-height: 56px; max-width: 200px; border: 1px solid var(--sky-200); border-radius: 10px; padding: 6px; background: #FFFFFF; }
.logo-preview.on-dark { background: #0B1F3A; border-color: #0B1F3A; }
.file-pick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; flex-wrap: wrap; }
.file-pick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-pick input[type=file]:focus-visible + .btn { outline: 3px solid var(--sky); outline-offset: 2px; }
.file-pick:hover .btn { border-color: var(--blue); }
.brand img { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.brand-face { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-dark { display: none; }
[data-theme="dark"] .client .brand-light { display: none; }
[data-theme="dark"] .client .brand-dark { display: flex; }
.mobile-bar .brand img { height: 32px; max-width: 150px; }
.site-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 20px 16px 28px; font-size: 13px; color: var(--muted); text-align: center; }
.site-foot strong { color: var(--ink); }
.site-foot a { color: var(--muted); display: inline-flex; align-items: center; min-height: 24px; }
.shell-main .site-foot { margin-top: auto; }

/* Hosting server cards (admin) */
.server.is-default { border-color: var(--blue); border-width: 2px; }
.server-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.server-stats .stat { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--ground); min-width: 0; }
.server-stats .big { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; }
.server-stats .big .of { font: 500 15px var(--body); color: var(--muted); letter-spacing: 0; }
.server-stats .big.muted { color: var(--muted); }
.server-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; border-top: 1px solid var(--sky-100); padding-top: 14px; }
.server-edit[open] { flex-basis: 100%; order: 2; }
.server-edit > summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--blue); min-height: 44px; display: inline-flex; align-items: center; }
.server-edit[open] > summary { margin-bottom: 12px; }

/* Support ticket conversation */
.thread { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: min(680px, 92%); padding: 14px 18px; border-radius: 16px; background: var(--white); border: 1px solid var(--sky-200); }
.msg.mine { align-self: flex-end; background: var(--sky-100); border-color: var(--sky-100); }
.msg-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 6px; font-size: 14px; }
.msg-body { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.sidebar nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar .count { padding: 2px 9px; border-radius: 999px; background: var(--sky); color: var(--ink); font-size: 12px; font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: var(--sky-100); padding: 1px 5px; border-radius: 5px; }

/* Home page */
.topbar { position: sticky; top: 0; z-index: 30; border-bottom-width: 1px; }
.topbar .nav { justify-content: flex-end; }
.home-hero { background: linear-gradient(var(--white), var(--ground)); }
.home-hero .wrap { padding-top: 64px; padding-bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.home-hero h1 { font-size: clamp(32px, 5.2vw, 52px); line-height: 1.08; letter-spacing: -0.02em; max-width: 880px; }
.home-hero .lead { font-size: 18px; color: var(--muted); max-width: 620px; }
.domain-search { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; }
.domain-search .input { flex: 1 1 220px; width: auto; }
.domain-search.big { max-width: 780px; margin-top: 10px; padding: 8px; background: var(--white); border: 1px solid var(--sky-300); border-radius: 18px; box-shadow: 0 10px 30px rgba(11, 37, 69, 0.08); }
.domain-search.big .input { border: 0; min-height: 56px; font-size: 18px; background: transparent; }
.domain-search.big .input:focus { outline: 3px solid var(--blue); outline-offset: 0; border-radius: 12px; }
.domain-search.big .btn { min-height: 56px; padding: 0 28px; border-radius: 12px; font-size: 16px; }
.tld-strip { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.tld-strip li { padding: 2px 20px; border-right: 1px solid var(--sky-200); font-size: 17px; white-space: nowrap; }
.tld-strip li:last-child { border-right: 0; }
.tld-strip strong { font-family: var(--display); font-weight: 800; font-size: 19px; }
.tld-strip strong span { color: var(--blue); }
.tld-strip li > span { color: var(--muted); margin-left: 6px; }
.tld-strip.left { justify-content: flex-start; margin-top: 0; }
.tld-strip.left li:first-child { padding-left: 0; }
.section-head { display: flex; flex-direction: column; gap: 4px; }
.section-head h2 { font-size: 30px; }
.plan { gap: 14px; }
.plan h3 { font-size: 24px; }
.plan.featured { border-color: var(--blue); border-width: 2px; }
.plan .price { font-family: var(--display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.plan .price span { font: 500 15px var(--body); color: var(--muted); letter-spacing: 0; }
.ticks { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.ticks li { padding-left: 24px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
pre.whois { margin: 0; padding: 16px; background: var(--ground); border-radius: 12px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; }
@media (max-width: 640px) {
  .home-hero .wrap { padding-top: 36px; }
  .tld-strip li { padding: 2px 12px; font-size: 15px; }
  .topbar .nav { order: 3; flex-basis: 100%; justify-content: flex-start; }
}

.pad-plan { padding: 18px; border: 1px solid var(--sky-200); border-radius: 14px; background: var(--white); }

/* Domain settings: select rows and edit them together */
.tld-table .pick { width: 44px; padding-right: 0; }
.tld-table .pick input, #pick-all { width: 20px; height: 20px; accent-color: var(--blue); }
.tld-table tr.picked td { background: var(--sky-100); }
.tld-table input[type=number] { min-width: 104px; }
.tld-table select.input { min-width: 150px; }
.input.changed, input[type=checkbox].changed { outline: 3px solid var(--warn); outline-offset: 1px; }

/* The hidden attribute always wins, also over flex and grid rows. */
[hidden] { display: none !important; }

/* Visitor top bar: full menu on wide screens, a menu button on phones */
.topbar .wrap { position: relative; }
.topbar-wide { display: flex; align-items: center; gap: 10px 14px; flex: 1 1 auto; min-width: 0; }
.topbar-narrow { display: none; }
@media (max-width: 900px) {
  .topbar-wide { display: none; }
  .topbar .wrap { padding-top: 8px; padding-bottom: 8px; gap: 10px; }
  .topbar .brand { font-size: 19px; min-width: 0; margin-right: auto; }
  .topbar .brand img { height: 32px; max-width: 150px; }
  .topbar-narrow { display: flex; align-items: center; gap: 8px; }
  .guest-menu > summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--sky-200); border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .guest-menu > summary::-webkit-details-marker { display: none; }
  .guest-menu > summary span, .guest-menu > summary span::before, .guest-menu > summary span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
  .guest-menu > summary span { position: relative; }
  .guest-menu > summary span::before, .guest-menu > summary span::after { content: ""; position: absolute; left: 0; }
  .guest-menu > summary span::before { top: -6px; }
  .guest-menu > summary span::after { top: 6px; }
  .guest-menu[open] > summary { background: var(--ink); border-color: var(--ink); color: var(--white); }
  .guest-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--sky-200); border-bottom: 1px solid var(--sky-200); box-shadow: 0 16px 30px rgba(11, 37, 69, 0.12); padding: 8px 16px 16px; }
  .guest-panel nav { display: flex; flex-direction: column; }
  .guest-panel nav a { display: flex; align-items: center; min-height: 50px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
  .guest-panel nav a.on { background: var(--sky-100); }
  .guest-panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--sky-200); margin-top: 8px; padding: 14px 12px 0; }
  .guest-panel-foot .btn { margin-left: auto; }
}
@media (max-width: 640px) {
  .domain-search .btn { flex: 1 1 100%; }
  .home-hero .tld-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; width: 100%; }
  .home-hero .tld-strip li { border-right: 0; padding: 8px 10px; background: var(--white); border: 1px solid var(--sky-200); border-radius: 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 14px; }
  .home-hero .tld-strip strong { font-size: 16px; }
}

.chip .save { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sky); color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Public pages */
.page-hero .wrap { padding-top: 48px; padding-bottom: 28px; }
.prose { font-size: 16px; line-height: 1.65; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { font-size: 24px; margin: 28px 0 10px; }
.prose h3 { font-size: 19px; margin: 22px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { font-weight: 600; }
.prose ol ol, .prose ol ul, .prose ul ul { margin: 6px 0 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--sky-200); vertical-align: top; }
.prose th { background: var(--sky-100); color: var(--ink); font-weight: 700; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--sky-100); color: var(--ink); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.prose pre { background: #0B2545; color: #E0F2FE; padding: 14px 16px; border-radius: 12px; overflow-x: auto; margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; overflow-wrap: normal; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 4px solid var(--sky); background: var(--ground); border-radius: 0 10px 10px 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--sky-200); margin: 28px 0 18px; }
/* More menu entries: switch to the menu button a little earlier */
.topbar .nav a { padding: 10px 12px; white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) {
  .topbar-wide { display: none; }
  .topbar-narrow { display: flex; align-items: center; gap: 8px; margin-left: auto; position: static; }
  .topbar-narrow .guest-menu > summary { list-style: none; width: 44px; height: 44px; border: 1px solid var(--sky-200); border-radius: 12px; background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
  .topbar-narrow .guest-menu > summary::-webkit-details-marker { display: none; }
  .topbar-narrow .guest-menu > summary span, .topbar-narrow .guest-menu > summary span::before, .topbar-narrow .guest-menu > summary span::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); }
  .topbar-narrow .guest-menu > summary span { position: relative; }
  .topbar-narrow .guest-menu > summary span::before, .topbar-narrow .guest-menu > summary span::after { content: ""; position: absolute; left: 0; }
  .topbar-narrow .guest-menu > summary span::before { top: -6px; }
  .topbar-narrow .guest-menu > summary span::after { top: 6px; }
  .guest-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--sky-200); border-bottom: 1px solid var(--sky-200); box-shadow: 0 16px 30px rgba(11, 37, 69, 0.12); padding: 8px 16px 16px; }
  .guest-panel nav { display: flex; flex-direction: column; }
  .guest-panel nav a { display: flex; align-items: center; min-height: 50px; padding: 0 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 17px; text-decoration: none; }
  .guest-panel nav a.on { background: var(--sky-100); }
  .guest-panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-top: 1px solid var(--sky-200); margin-top: 8px; padding: 14px 12px 0; }
  .guest-panel-foot .btn { margin-left: auto; }
}

.topbar .wrap { max-width: 1440px; }
.topbar .brand { flex: none; }

/* Domain suggestions on the hosting order */
.suggest { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.suggest ul { display: flex; flex-direction: column; border: 1px solid var(--sky-200); border-radius: 12px; overflow: hidden; }
.suggest li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px 14px; background: var(--white); border-top: 1px solid var(--sky-100); font-size: 15px; }
.suggest li:first-child { border-top: 0; }
.suggest .row { gap: 8px; }

/* ==================================================================
   Visitor pages in the netpoa.tz style (body.site): white bar, Sora
   headings over Inter text, navy pills, a teal highlight, quiet cards.
   ================================================================== */
.site { --np-ink: #0B1220; --np-text: #1F2937; --np-muted: #4B5563; --np-line: #E5E7EB; --np-soft: #F3F4F6; --np-blue: #0A84FF; --np-blue-ink: #0067D6; --np-teal: #2DE2C4;
  font-family: var(--f-ui), system-ui, sans-serif; color: var(--np-text); background: #FFFFFF; }
.site h1, .site h2, .site h3 { font-family: var(--f-head), sans-serif; color: var(--np-ink); }
.site a { color: var(--np-blue-ink); }
.site .btn { font-family: var(--f-ui), sans-serif; font-weight: 600; }
.site .btn-dark { background: var(--np-ink); border-color: var(--np-ink); color: #FFFFFF; }
.site .btn-dark:hover { background: #1F2A3D; color: #FFFFFF; }
.site .btn-outline { background: #FFFFFF; border: 1px solid var(--np-line); color: var(--np-ink); }
.site .btn-outline:hover { border-color: var(--np-ink); color: var(--np-ink); }
.site .np-btn-blue { background: var(--np-blue); border: 0; color: #FFFFFF; }
.site .np-btn-blue:hover { background: var(--np-blue-ink); color: #FFFFFF; }
.site .btn-primary { background: var(--np-ink); border-color: var(--np-ink); color: #FFFFFF; }
.site .btn-primary:hover { background: #1F2A3D; }
.site .card, .site .choice, .site .chip { border-color: var(--np-line); }

/* Top bar */
.site .topbar { background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--np-line); }
.site .topbar .wrap { max-width: 1240px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.site .topbar .brand { font-family: var(--f-head), sans-serif; color: var(--np-ink); }
.site .topbar .brand em { color: var(--np-blue-ink); }
.site .topbar-wide { gap: 10px; }
.site .topbar .nav { justify-content: center; gap: 2px; }
.site .topbar .nav a { font-family: var(--f-ui), sans-serif; font-weight: 500; font-size: 15px; color: var(--np-text); padding: 10px 12px; border-radius: 999px; }
.site .topbar .nav a:hover { background: var(--np-soft); }
.site .topbar .nav a.on { background: transparent; color: var(--np-ink); font-weight: 700; box-shadow: inset 0 -2px 0 var(--np-blue); border-radius: 0; }
.site .topbar .currency select { border-color: var(--np-line); }
.site .guest-panel nav a.on { background: var(--np-soft); }

/* Hero */
.np-hero { position: relative; background-color: #FFFFFF;
  background-image: radial-gradient(rgba(11, 18, 32, 0.07) 1px, transparent 1px), radial-gradient(1200px 600px at 85% 0%, rgba(10, 132, 255, 0.07), transparent 60%);
  background-size: 22px 22px, auto; }
.np-hero .wrap { max-width: 1240px; }
.np-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.np-hero h1 { font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 20px; }
.np-mark { position: relative; white-space: nowrap; }
.np-mark::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: 0.06em; height: 0.2em; background: var(--np-teal); border-radius: 4px; z-index: -1; }
.np-hero h1 { position: relative; z-index: 0; }
.np-lead { font-size: 19px; line-height: 1.6; color: var(--np-muted); max-width: 560px; margin: 0 0 26px; }
.np-search { margin-top: 30px; background: #FFFFFF; border: 1px solid var(--np-line); border-radius: 22px; padding: 10px 10px 14px; box-shadow: 0 18px 40px rgba(11, 18, 32, 0.07); max-width: 620px; }
.np-search-row { display: flex; align-items: center; gap: 10px; padding-left: 14px; color: #9CA3AF; }
.np-search-row input { flex: 1 1 auto; min-width: 0; border: 0; outline: none; font: 500 17px var(--f-ui), sans-serif; color: var(--np-ink); min-height: 52px; background: transparent; }
.np-search-row input:focus-visible { outline: 2px solid var(--np-blue); outline-offset: 4px; border-radius: 8px; }
.np-search-row .btn { min-height: 48px; padding: 0 22px; border-radius: 999px; }
/* Domain search boxes: a fixed "www." in front of what is typed (it cannot be edited; a typed www is taken off). */
.www-pre { flex: none; color: var(--np-muted, #6B7280); font-weight: 500; user-select: none; cursor: text; }
.np-search-row .www-pre { font: 500 17px var(--f-ui), sans-serif; margin-right: -10px; }
.np-search-row .www-pre + input { padding-left: 1px; }
.www-box { position: relative; min-width: 0; }
.domain-search .www-box { flex: 1 1 220px; }
.www-box .www-pre { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); font: 500 16px var(--body); }
.www-box .input { padding-left: 61px; width: 100%; }
.domain-search.big .www-box .www-pre { font-size: 18px; }
.domain-search.big .www-box .input { padding-left: 67px; }
.np-tlds { list-style: none; margin: 10px 0 0; padding: 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.np-tlds li { background: var(--np-soft); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; white-space: nowrap; }
.np-tlds strong { color: var(--np-ink); font-weight: 700; }
.np-tlds span { color: var(--np-muted); margin-left: 4px; }
.np-pay { margin: 16px 0 0; font-size: 14px; color: var(--np-muted); }
.np-hero-side { display: flex; flex-direction: column; gap: 14px; }
/* Home: one column. The domain search runs the full width; the service cards sit in a row below it. */
.np-hero-stack { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.np-hero-stack .np-search { max-width: none; }
.np-hero-stack .np-hero-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.np-hero-stack .np-hero-side { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.np-hero-stack .np-mini:nth-child(n) { margin-left: 0; }
.np-hero-stack .np-mini { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; }
.np-hero-stack .np-mini-text { flex: 1 1 auto; }
.np-hero-stack .np-mini-price { font-size: 15px; }
@media (max-width: 560px) { .np-hero-stack .np-mini { flex-direction: row; align-items: center; } }
.np-mini { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #FFFFFF; border: 1px solid var(--np-line); border-radius: 18px; text-decoration: none; color: var(--np-text); box-shadow: 0 10px 30px rgba(11, 18, 32, 0.06); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.np-mini:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(11, 18, 32, 0.1); color: var(--np-text); }
.np-mini:nth-child(2) { margin-left: 28px; }
.np-mini:nth-child(3) { margin-left: 12px; }
.np-mini.dark { background: var(--np-ink); border-color: var(--np-ink); color: #E5E7EB; }
.np-mini.dark strong { color: #FFFFFF; }
.np-mini-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.np-mini-text strong { font-family: var(--f-head), sans-serif; font-size: 16px; color: var(--np-ink); }
.np-mini-text span { font-size: 13px; color: var(--np-muted); }
.np-mini.dark .np-mini-text span { color: #9CA3AF; }
.np-mini-price { font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--np-ink); }
.np-mini.dark .np-mini-price { color: var(--np-teal); }
.np-mini-price small { font-weight: 500; color: var(--np-muted); }
.np-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #1F2A3D; color: var(--np-teal); }
.np-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-ico.blue { background: #E8F2FF; color: var(--np-blue-ink); }
.np-ico.violet { background: #EFEAFF; color: #6D4AE0; }

/* Sections and cards */
.site .wrap.page { max-width: 1240px; }
.np-section { display: flex; flex-direction: column; gap: 18px; padding-top: 24px; }
.np-head { display: flex; flex-direction: column; gap: 10px; max-width: 760px; margin-bottom: 10px; }
.np-head h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
.np-head p { font-size: 17px; line-height: 1.6; color: var(--np-muted); margin: 0; }
.np-eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 12.5px var(--f-ui), sans-serif; letter-spacing: 0.14em; text-transform: uppercase; color: var(--np-blue-ink); }
.np-eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.np-cards { display: grid; gap: 16px; }
.np-cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.np-cards.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.np-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px; background: #FFFFFF; border: 1px solid var(--np-line); border-radius: 22px; }
.np-card h3 { font-size: 22px; font-weight: 600; margin: 6px 0 0; letter-spacing: -0.01em; }
.np-card p { margin: 0; color: var(--np-muted); font-size: 15px; line-height: 1.6; }
.np-card.dark { background: var(--np-ink); border-color: var(--np-ink); color: #D1D5DB; }
.np-card.dark h3 { color: #FFFFFF; }
.np-card.dark p { color: #9CA3AF; }
.np-card.dark .np-chips li { background: #1F2A3D; color: #D1D5DB; }
.np-card.dark .np-from { color: #FFFFFF; }
.np-card.dark .np-card-foot a { color: var(--np-teal); }
.np-chips { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.np-chips li { background: var(--np-soft); color: var(--np-text); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.np-card-foot { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.np-reseller { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--np-line, #E3E8EF); font-size: 13.5px; color: var(--np-muted, #5B6676); }
.np-reseller a { font-weight: 700; }
.np-from { font-weight: 700; font-size: 17px; color: var(--np-ink); }
.np-from small { font-weight: 500; font-size: 13px; color: var(--np-muted); }
.np-card-foot a { font-weight: 600; text-decoration: none; }
.np-card-foot a:hover { text-decoration: underline; }
.np-tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--np-blue-ink); background: #E8F2FF; border-radius: 999px; padding: 4px 10px; }
.np-cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 44px 40px; border-radius: 26px; color: #D1D5DB;
  background: radial-gradient(600px 300px at 10% 0%, rgba(10, 132, 255, 0.25), transparent 60%), var(--np-ink); }
.np-cta h2 { color: #FFFFFF; font-size: clamp(26px, 3.2vw, 38px); margin: 0 0 6px; letter-spacing: -0.02em; }
.np-cta p { margin: 0; color: #9CA3AF; font-size: 16px; }
.np-btn-ghost { background: transparent; border: 1px solid #374151; color: #FFFFFF; }
.np-btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }

/* Public pages */
.np-page-hero .wrap { padding-top: 56px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 14px; }
.np-page-hero h1 { margin: 0; font-size: clamp(34px, 4.6vw, 54px); }
.np-page-hero .np-lead { margin: 0; }
/* Phones, after a search: the result comes straight after the Search button (prices and the transfer link wait below). */
@media (max-width: 640px) { .np-has-results .np-tlds, .np-has-results .np-pay { display: none; } .np-page-hero.np-has-results .wrap { padding-bottom: 4px; } }
.site .plan { border-radius: 22px; }
.site .plan.featured { border-color: var(--np-ink); }
.site .plan .price { font-family: var(--f-head), sans-serif; color: var(--np-ink); }
.site .ticks li::before { border-color: var(--np-blue); }
.site .badge.sky { background: var(--np-teal); color: var(--np-ink); }
.site .prose h2, .site .prose h3 { font-family: var(--f-head), sans-serif; }

/* Footer and terms */
.site .site-foot { border-top: 1px solid var(--np-line); margin-top: 40px; padding-top: 28px; }
.terms-box { padding: 12px 14px; border-radius: 12px; background: var(--ground); font-size: 14px; }
.site .terms-box { background: var(--np-soft); }

/* Coupon code at checkout: a quiet link until opened. */
.coupon-box summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--blue); list-style: none; width: fit-content; }
.coupon-box summary::-webkit-details-marker { display: none; }
.coupon-box summary::before { content: "+"; display: inline-block; width: 1em; font-weight: 700; }
.coupon-box details[open] summary::before { content: "−"; }
.coupon-box summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row .input { flex: 1 1 auto; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.coupon-row .input::placeholder { text-transform: none; letter-spacing: 0; }
.coupon-row .btn { flex: none; }
.coupon-msg { margin: 6px 0 0; color: var(--blue); }
.coupon-msg:empty { display: none; }
.coupon-msg[data-bad] { color: var(--bad-ink); }
.coupon-auto { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--sky-100); font-size: 14px; }
.coupon-auto .linkbtn { white-space: nowrap; }
.coupon-flag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--sky-100); color: var(--blue); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.coupon-flag-auto { background: #0B2545; color: #FFFFFF; }
.coupon-applied { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: #DCFCE7; color: #166534; font-size: 12px; font-weight: 700; }

/* The offers bar above the top menu (Admin › Coupons › On the portal). */
.offers-bar { display: flex; align-items: stretch; min-height: 38px; background: #0B2545; color: #FFFFFF; font-size: 14px; }
.offers-bar[hidden] { display: none; }
.offers-tag { flex: none; display: flex; align-items: center; gap: 6px; padding: 0 14px; background: #0284C7; font-weight: 700; }
.offers-tag svg, .offers-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.offers-window { flex: 1 1 auto; min-width: 0; overflow: hidden; display: flex; align-items: center; }
.offers-track { display: flex; width: max-content; }
.offers-list { display: flex; gap: 48px; margin: 0; padding: 0 24px 0 16px; list-style: none; white-space: nowrap; }
.offers-list li { display: flex; align-items: center; gap: 6px; }
.offers-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; padding: 1px 8px; border-radius: 6px; background: #E0F2FE; color: #0B2545; letter-spacing: .04em; }
.offers-note { color: #BAE6FD; }
.offers-use { padding: 0; border: 0; background: none; color: #7DD3FC; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.offers-use:focus-visible, .offers-close:focus-visible { outline: 2px solid #7DD3FC; outline-offset: 2px; }
.offers-close { flex: none; display: flex; align-items: center; padding: 0 14px; border: 0; background: none; color: #FFFFFF; cursor: pointer; }
.offers-bar:not([data-moving]) [data-offers-copy] { display: none; }
.offers-bar[data-moving] .offers-track { animation: offers-move 32s linear infinite; }
.offers-bar[data-moving]:hover .offers-track, .offers-bar[data-moving]:focus-within .offers-track { animation-play-state: paused; }
@keyframes offers-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .offers-bar[data-moving] .offers-track { animation: none; }
  .offers-window { overflow-x: auto; }
}

@media (max-width: 960px) {
  .np-hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 36px; gap: 28px; }
  .np-mini:nth-child(2), .np-mini:nth-child(3) { margin-left: 0; }
}
@media (max-width: 640px) {
  .np-search-row { flex-wrap: wrap; padding-left: 8px; }
  .np-search-row svg { display: none; }
  .np-search-row .btn { flex: 1 1 100%; }
  .np-card { padding: 20px; }
  .np-cta { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) { .np-mini { transition: none; } .np-mini:hover { transform: none; } }

/* Order steps, shown in the page so the menu stays in the top bar */
.steps-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; font-weight: 600; }
.steps-line li { padding: 5px 12px; border-radius: 999px; background: var(--sky-100); color: var(--muted); }
.steps-line li.on { background: var(--ink); color: var(--white); }
.site .steps-line li { background: #F3F4F6; color: #4B5563; }
.site .steps-line li.on { background: #0B1220; color: #FFFFFF; }

/* Drop-down menus in the visitor bar */
.dd { position: relative; }
.dd-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border: 0; border-radius: 999px; background: none; color: var(--ink); font: 600 15px var(--body); cursor: pointer; }
.site .dd-toggle { font: 500 15px var(--f-ui), sans-serif; color: #1F2937; }
.dd-toggle:hover, .dd.open .dd-toggle { background: var(--sky-100); }
.site .dd-toggle:hover, .site .dd.open .dd-toggle { background: #F3F4F6; }
.dd-toggle.on { font-weight: 700; }
.site .dd-toggle.on { color: #0B1220; box-shadow: inset 0 -2px 0 #0A84FF; border-radius: 0; }
.dd-caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
.dd.open .dd-caret { transform: rotate(180deg); }
.dd-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 50; min-width: 240px; padding: 8px; background: var(--white); border: 1px solid var(--sky-200); border-radius: 16px; box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12); }
.site .dd-menu { border-color: #E5E7EB; }
.dd.open .dd-menu { display: flex; flex-direction: column; }
@media (hover: hover) and (min-width: 1181px) {
  .dd:hover .dd-menu { display: flex; flex-direction: column; }
  .dd:hover .dd-caret { transform: rotate(180deg); }
  .dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* keeps the menu open while the pointer moves down */
}
.topbar .dd-menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; box-shadow: none; }
.site .topbar .dd-menu a { color: #1F2937; }
.topbar .dd-menu a:hover { background: var(--ground); }
.site .topbar .dd-menu a:hover { background: #F3F4F6; }
.topbar .dd-menu a.on { background: var(--sky-100); font-weight: 700; box-shadow: none; border-radius: 10px; }
.site .topbar .dd-menu a.on { background: #E8F2FF; color: #0B1220; }
.mi { flex: none; width: 20px; height: 20px; fill: none; stroke: #94A3B8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dd-menu a:hover .mi, .dd-menu a.on .mi { stroke: var(--blue); }
.site .dd-menu a:hover .mi, .site .dd-menu a.on .mi { stroke: #0A84FF; }
/* Phone menu: the heading, then its items indented */
.guest-panel .m-head { display: block; padding: 14px 12px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.guest-panel nav a.m-sub { padding-left: 24px; gap: 12px; font-weight: 500; }
/* Phone menu sections fold: the heading is a button with a chevron. */
.guest-panel .m-group > summary.m-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 10px 12px; margin-top: 2px; border-radius: 10px; cursor: pointer; list-style: none; font-size: 13px; color: var(--ink); }
.guest-panel .m-group > summary.m-head::-webkit-details-marker { display: none; }
.guest-panel .m-group > summary.m-head:hover { background: var(--sky-50, #f3f8fd); }
.guest-panel .m-group > summary.m-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(-90deg); transition: transform .15s; }
.guest-panel .m-group[open] > summary.m-head svg { transform: none; }
@media (prefers-reduced-motion: reduce) { .dd-caret { transition: none; } }
/* Admin: items inside a drop-down */
.table tr.sub td { background: #FAFCFF; }
.sub-mark { color: var(--muted); margin-right: 6px; }

/* Domain price list and transfer page */
.tld-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.tld-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.tld-cat { min-height: 40px; padding: 0 14px; border: 1px solid var(--sky-200); border-radius: 999px; background: var(--white); font: 600 14px var(--f-ui), sans-serif; color: var(--ink); cursor: pointer; }
.tld-cat span { margin-left: 4px; color: #64748B; font-weight: 500; }
.tld-cat:hover { border-color: var(--ink); }
.tld-cat.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.tld-cat.on span { color: rgba(255, 255, 255, 0.75); }
.tld-find { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 44px; border: 1px solid var(--sky-200); border-radius: 999px; background: var(--white); color: #94A3B8; flex: 0 1 300px; }
.tld-find input { border: 0; outline: none; font: 500 15px var(--f-ui), sans-serif; color: var(--ink); min-width: 0; flex: 1; background: transparent; }
.tld-find:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-100); }
.tld-prices tbody th[scope=row] { white-space: nowrap; background: transparent; text-align: left; font-weight: 400; }
.tld-name { font: 700 17px var(--f-head), sans-serif; color: var(--ink); }
.tld-label { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.tld-label.hot { background: #FDE2E1; color: #A1241A; }
.tld-label.new { background: #DDF7F1; color: #0B5D50; }
.tld-label.sale { background: #EAE4FD; color: #4C2DB3; }
.tld-price { display: block; font-weight: 700; color: var(--ink); white-space: nowrap; }
.tld-sub { display: block; font-size: 12.5px; color: #64748B; white-space: nowrap; }
.steps-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps-list li { counter-increment: step; position: relative; padding-left: 42px; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-100); color: var(--ink); font-weight: 700; font-size: 14px; display: grid; place-items: center; }
.steps-list li span { color: #475569; }
.tld-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tld-card { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 20px; background: var(--white); border: 1px solid var(--sky-200); border-radius: 18px; }
.tld-card-name { font: 800 28px var(--f-head), sans-serif; color: var(--ink); letter-spacing: -0.02em; }
.tld-card-price { font-weight: 700; font-size: 17px; color: var(--ink); }
.tld-card-price small { font-weight: 500; color: #64748B; font-size: 13px; }
.tld-card .btn { margin-top: 6px; }
.site .tld-cat, .site .tld-find, .site .tld-card { border-color: var(--np-line); }
.site .tld-cat.on { background: var(--np-ink); border-color: var(--np-ink); }
@media (max-width: 640px) { .tld-find { flex: 1 1 100%; } }
.currency-locked { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 2px solid var(--sky-200); border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--ink); background: var(--white); cursor: help; }
.currency-locked svg { color: #64748B; }

/* ==================================================================
   Client area (body.site.client): top menu, account menu, dark mode
   ================================================================== */
.client { --ground: #F3F7FB; background: var(--ground); }
.client .topbar { position: sticky; top: 0; z-index: 40; }
.client-tools { display: flex; align-items: center; gap: 10px; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--np-line); }
.client .topbar .nav { justify-content: flex-end; margin-left: auto; }
.nav-dot { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 9px; background: var(--bad); color: #FFFFFF; font-size: 11px; font-weight: 700; line-height: 1; }
.theme-toggle { width: 42px; height: 42px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--np-line); border-radius: 12px; background: var(--white); color: var(--np-ink); cursor: pointer; }
.theme-toggle:hover { border-color: var(--np-ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun, [data-theme="dark"] .theme-toggle .i-moon { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: linear-gradient(140deg, #5AA9FF, #3F6FE8); color: #FFFFFF; font: 700 14px var(--f-ui), sans-serif; letter-spacing: 0.02em; display: inline-grid; place-items: center; box-shadow: 0 0 0 4px #E3F1FF; }
.avatar.lg { width: 84px; height: 84px; font-size: 28px; box-shadow: 0 0 0 6px #E3F1FF; }
.avatar { position: relative; overflow: hidden; } .avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; } /* the initials sit underneath until the photo loads, and stay if it cannot */
.client .dd-toggle.avatar-btn { padding: 4px; border-radius: 50%; box-shadow: none; }
.client .dd-toggle.avatar-btn:hover, .client .dd.open .dd-toggle.avatar-btn { background: transparent; }
.dd-right .dd-menu { left: auto; right: 0; }
.account-menu { min-width: 280px; }
.account-menu .me { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--np-line); font-size: 13.5px; color: var(--np-muted); white-space: normal; }
.account-menu .me strong { color: var(--np-ink); font-size: 15px; }
.client .topbar .dd-menu a { justify-content: space-between; }
.flag { padding: 2px 8px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 11.5px; font-weight: 700; }
.account-menu form { border-top: 1px solid var(--np-line); margin-top: 6px; padding-top: 6px; }
.sign-out { width: 100%; text-align: left; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 10px; background: none; color: var(--bad); font: 600 15px var(--f-ui), sans-serif; cursor: pointer; }
.sign-out:hover { background: var(--bad-bg); }
.client-panel .me-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--np-line); margin-bottom: 4px; }
.client-panel .guest-panel-foot .currency { margin: 0; }
.client .page { padding-top: 32px; }
.client .flash { border-width: 1px; border-color: var(--np-blue); border-radius: 14px; }
.client main h1 { font-size: clamp(28px, 4vw, 36px); }
.client .card { background: var(--white); }
@media (max-width: 1180px) and (min-width: 1100px) {
  .client .topbar-wide { display: flex; }
  .client .topbar-narrow { display: none; }
  .client .topbar .dd-toggle { padding: 10px 8px; }
}
@media (max-width: 1099px) {
  .client .topbar-wide { display: none; }
  .client .topbar-narrow { display: flex; align-items: center; gap: 8px; margin-left: auto; position: static; }
  .client .guest-panel { max-height: calc(100vh - 70px); overflow-y: auto; }
}

/* Dark mode for the client area: the same tokens, night values. */
[data-theme="dark"] .client {
  --ink: #EAF2FB; --white: #0F1726; --ground: #070C16; --muted: #93A0B4;
  --blue: #5AB0FF; --blue-dark: #8CC8FF; --sky: #2D6BA8; --sky-300: #2D4A6E; --sky-200: #223049; --sky-100: #13243D;
  --warn: #F5B544; --warn-bg: #2A2010; --warn-ink: #F5C46B; --bad: #FF7B6E; --bad-bg: #2E1512; --bad-ink: #FF9B90;
  --np-ink: #EAF2FB; --np-text: #D5DDE8; --np-muted: #93A0B4; --np-line: #223049; --np-soft: #16213A; --np-blue: #3D9BFF; --np-blue-ink: #7DBBFF;
  color-scheme: dark; color: var(--np-text); background: var(--ground);
}
[data-theme="dark"] .client .topbar { background: rgba(10, 16, 28, 0.92); }
[data-theme="dark"] .client .btn-primary, [data-theme="dark"] .client .btn-dark { background: #3D9BFF; border-color: #3D9BFF; color: #04101F; }
[data-theme="dark"] .client .btn-primary:hover, [data-theme="dark"] .client .btn-dark:hover { background: #7DBBFF; color: #04101F; }
[data-theme="dark"] .client .btn-outline { background: transparent; color: var(--np-ink); }
[data-theme="dark"] .client .dd-toggle, [data-theme="dark"] .client .topbar .dd-menu a, [data-theme="dark"] .client .topbar .nav a { color: var(--np-text); }
[data-theme="dark"] .client .dd-toggle.on, [data-theme="dark"] .client .topbar .nav a.on { color: var(--np-ink); }
[data-theme="dark"] .client .dd-toggle:hover, [data-theme="dark"] .client .dd.open .dd-toggle, [data-theme="dark"] .client .topbar .dd-menu a:hover { background: var(--np-soft); }
[data-theme="dark"] .client .topbar .dd-menu a.on { background: var(--sky-100); color: var(--np-ink); }
[data-theme="dark"] .client .dd-menu, [data-theme="dark"] .client .guest-panel { background: var(--white); border-color: var(--np-line); }
[data-theme="dark"] .client .avatar { box-shadow: 0 0 0 4px #13243D; }
[data-theme="dark"] .client .avatar.lg { box-shadow: 0 0 0 6px #13243D; }
[data-theme="dark"] .client .input, [data-theme="dark"] .client select, [data-theme="dark"] .client textarea { background: #0B1322; color: var(--ink); border-color: var(--sky-200); }
[data-theme="dark"] .client .table th { background: #0B1322; color: var(--muted); }
[data-theme="dark"] .client .table td, [data-theme="dark"] .client .table th { border-color: var(--sky-200); }
[data-theme="dark"] .client .np-card, [data-theme="dark"] .client .np-search, [data-theme="dark"] .client .np-mini, [data-theme="dark"] .client .tld-card, [data-theme="dark"] .client .tld-cat, [data-theme="dark"] .client .tld-find { background: var(--white); border-color: var(--np-line); color: var(--np-text); }
[data-theme="dark"] .client .tld-cat.on { background: var(--np-blue); border-color: var(--np-blue); color: #04101F; }
[data-theme="dark"] .client .np-tlds li { background: var(--np-soft); }
[data-theme="dark"] .client .flash { background: var(--sky-100); color: var(--ink); border-color: var(--sky-200); }
[data-theme="dark"] .client .site-foot { border-color: var(--np-line); }
[data-theme="dark"] .client .badge { background: var(--sky-100); color: var(--ink); }
[data-theme="dark"] .client .prose pre { background: #0B1322; border: 1px solid var(--sky-200); }
[data-theme="dark"] .client .badge.sky { background: #1E6E62; color: #EAFBF7; }

/* Client dashboard */
.dash-hero { background: linear-gradient(120deg, #0B1F3A, #0A4C9A 70%, #0A84FF); color: #FFFFFF; }
.dash-hero .wrap { padding-top: 36px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 6px; }
.site .dash-hero h1 { color: #FFFFFF; font-size: clamp(30px, 4.4vw, 42px); }
.dash-hero p { color: rgba(255, 255, 255, 0.82); }
.client .dash-hero + .page { padding-top: 0; }
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; margin-top: -72px; }
.dash-hero .hero-link { color: #FFFFFF; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.dash-hero .hero-link:hover { text-decoration-color: #FFFFFF; }
.client .card.idcard { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; box-shadow: 0 16px 36px rgba(11, 18, 32, 0.08); }
.idfacts { margin: 0; width: 100%; display: grid; gap: 8px; font-size: 14px; }
.idfacts div { display: flex; justify-content: space-between; gap: 12px; }
.idfacts dt { color: var(--muted); }
.idfacts dd { margin: 0; font-weight: 600; color: var(--np-ink); text-align: right; overflow-wrap: anywhere; }
.warn-text { color: var(--warn-ink) !important; }
.dash-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.setup-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--np-line); box-shadow: 0 16px 36px rgba(11, 18, 32, 0.08); }
.setup-bar .grow { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setup-bar strong { color: var(--np-ink); }
.dash-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 18px; background: var(--white); border: 1px solid var(--np-line); border-radius: 16px; text-decoration: none; color: var(--np-text); transition: border-color 0.15s ease, transform 0.15s ease; }
.tile:hover { border-color: var(--np-blue); transform: translateY(-2px); color: var(--np-text); }
.tile .n { font: 800 40px/1.1 var(--f-head), sans-serif; color: var(--np-ink); font-variant-numeric: tabular-nums; }
.tile.bad .n { color: var(--bad); }
.tile .l { color: var(--np-muted); font-weight: 600; font-size: 14px; }
.tile .go { margin-top: 8px; font-size: 13.5px; font-weight: 700; color: var(--np-blue-ink); }
.soon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 14px 24px; border-top: 1px solid var(--np-line); color: var(--np-text); text-decoration: none; }
.soon-row:hover { background: var(--ground); color: var(--np-text); }
.soon-row .grow { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; }
.soon-name { color: var(--np-text); text-decoration: none; }
.soon-name:hover strong { color: var(--np-blue-ink); text-decoration: underline; }
.soon-days { font-size: 13px; font-weight: 700; color: var(--np-ink); white-space: nowrap; padding: 4px 10px; border-radius: 999px; background: var(--np-soft); }
.soon-days.warn { background: var(--warn-bg); color: var(--warn-ink); }
.soon-days.bad { background: var(--bad-bg); color: var(--bad-ink); }
.soon-row form { margin: 0; }
.soon-row strong { color: var(--np-ink); }
@media (max-width: 900px) {
  .dash { grid-template-columns: minmax(0, 1fr); margin-top: -64px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }
[data-theme="dark"] .client .dash-hero { background: linear-gradient(120deg, #0A1528, #0B3566 70%, #0F5FB8); }

/* Setup wizard, profile tabs, forms */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.wizard { display: flex; flex-direction: column; align-items: center; gap: 26px; padding-top: 12px; }
.wsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.wsteps li { display: flex; align-items: center; gap: 10px; }
.wsteps li + li::before { content: ""; width: 28px; height: 2px; background: var(--np-line); }
.wsteps a { display: inline-flex; align-items: center; gap: 10px; color: var(--np-muted); font-weight: 600; text-decoration: none; }
.wsteps b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--np-line); background: var(--white); font-size: 13px; }
.wsteps .done b { background: var(--np-blue); border-color: var(--np-blue); color: #FFFFFF; }
.wsteps .on a { color: var(--np-ink); }
.wsteps .on b { border-color: var(--np-ink); color: var(--np-ink); }
.client .card.wcard { width: min(700px, 100%); display: flex; flex-direction: column; gap: 22px; padding: 30px; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 18, 32, 0.08); }
.client .wcard .eyebrow { color: var(--np-blue-ink); }
.wactions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.wactions .linkbtn { color: var(--np-muted); text-decoration: none; padding-left: 0; }
.types { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.type { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--np-line); border-radius: 14px; cursor: pointer; font-size: 13.5px; color: var(--np-muted); }
.type input { position: absolute; opacity: 0; }
.type strong { color: var(--np-ink); font-size: 15px; }
.type:has(input:checked) { border: 2px solid var(--np-blue); background: var(--sky-100); padding: 15px; }
.type:has(input:focus-visible) { outline: 3px solid var(--np-blue); outline-offset: 2px; }
.notify-list { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.notify-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid var(--np-line); border-radius: 14px; cursor: pointer; }
.notify-row input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--np-blue); flex: none; }
.notify-row > span { display: flex; flex-direction: column; gap: 2px; }
.notify-row strong { color: var(--np-ink); }
.profile-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.ptabs { display: flex; gap: 4px; border-bottom: 1px solid var(--np-line); overflow-x: auto; scrollbar-width: none; }
.ptabs a { padding: 12px 14px; font-weight: 600; color: var(--np-muted); text-decoration: none; white-space: nowrap; }
.ptabs a:hover { color: var(--np-ink); }
.ptabs a.on { color: var(--np-ink); box-shadow: inset 0 -3px 0 var(--np-blue); }
.ptabs .flag { margin-left: 6px; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .form-grid, .types { grid-template-columns: minmax(0, 1fr); }
  .client .card.wcard { padding: 22px 18px; }
  .wsteps a { font-size: 0; gap: 0; }
  .wsteps .on a { font-size: 15px; gap: 10px; }
}
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--np-line); border-radius: 12px; align-self: flex-start; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 8px 16px; border-radius: 9px; font-weight: 600; color: var(--np-muted); }
.seg input:checked + span { background: var(--np-ink); color: var(--white); }
.seg input:focus-visible + span { outline: 3px solid var(--np-blue); outline-offset: 2px; }
.client .card.idcard .meter > i { min-width: 0; }
[data-theme="dark"] .client .table tr.hl td, [data-theme="dark"] .client .table.stacked tr.hl { background: #241C0C; }
[data-theme="dark"] .client .sandbox { background: #241C0C; }

/* Client invoices list */
.due-card { display: grid; grid-template-columns: minmax(200px, auto) minmax(0, 1fr); gap: 20px 32px; align-items: center; padding: 24px 28px; border-radius: 20px; background: linear-gradient(120deg, #0B1F3A, #0A4C9A); color: #FFFFFF; }
.due-sum { display: flex; flex-direction: column; gap: 2px; }
.due-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.due-amount { font: 800 clamp(30px, 4vw, 40px)/1.1 var(--f-head), sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.due-approx { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.due-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.due-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); }
.due-list .grow { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.due-list strong { color: #FFFFFF; font-size: 15px; }
.due-when { font-size: 13.5px; font-weight: 600; color: #FFD48A; }
.site .btn.due-pay { background: #FFFFFF; border-color: #FFFFFF; color: #0B1220; }
.site .btn.due-pay:hover { background: #E3F1FF; color: #0B1220; }
.seg-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--np-line); border-radius: 14px; background: var(--white); align-self: flex-start; }
.seg-tabs a { padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--np-muted); text-decoration: none; }
.seg-tabs a:hover { color: var(--np-ink); background: var(--ground); }
.seg-tabs a.on { background: var(--np-ink); color: var(--white); }
.inv-list { display: flex; flex-direction: column; gap: 10px; }
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 28px; padding: 18px 22px; background: var(--white); border: 1px solid var(--np-line); border-left: 4px solid var(--np-line); border-radius: 16px; }
.inv-row.ok { border-left-color: #22A06B; }
.inv-row.warn { border-left-color: #E8A33B; }
.inv-row.bad { border-left-color: var(--bad); }
.inv-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.inv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inv-no { font: 700 16px var(--f-head), sans-serif; color: var(--np-ink); text-decoration: none; }
.inv-no:hover { color: var(--np-blue-ink); text-decoration: underline; }
.inv-pill { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--np-soft); color: var(--np-muted); }
.inv-pill.ok { background: #E3F6EE; color: #116B45; }
.inv-pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.inv-pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.inv-what { margin: 0; color: var(--np-text); overflow-wrap: anywhere; }
.inv-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--np-muted); }
@media (min-width: 761px) { .inv-meta span + span::before { content: "·"; margin-right: 14px; color: var(--np-muted); } }
.inv-why { color: var(--bad-ink); }
.inv-ref { font-variant-numeric: tabular-nums; }
.inv-amount { display: flex; flex-direction: column; align-items: flex-end; font: 700 19px var(--f-head), sans-serif; color: var(--np-ink); white-space: nowrap; }
.inv-approx { font: 500 13px var(--f-ui), sans-serif; color: var(--np-muted); }
.inv-acts { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 196px; }
.icon-act { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--np-line); border-radius: 12px; color: var(--np-ink); }
.icon-act:hover { border-color: var(--np-ink); color: var(--np-ink); }
.icon-act svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.inv-empty { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
  .due-card { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .inv-row { grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
  .inv-acts { grid-column: 1 / -1; justify-content: flex-start; min-width: 0; }
  .inv-acts .btn { flex: 1; }
}
[data-theme="dark"] .client .inv-pill.ok { background: #0F2E22; color: #6FDBA8; }
[data-theme="dark"] .client .seg-tabs a.on { background: var(--np-blue); color: #04101F; }

/* Client invoice page */
.ishow-head { display: flex; flex-direction: column; gap: 6px; }
.back-link { align-self: flex-start; font-size: 14px; font-weight: 600; color: var(--np-muted); text-decoration: none; }
.back-link:hover { color: var(--np-ink); }
.ishow-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ishow-title .inv-pill { font-size: 13px; padding: 4px 12px; }
.ishow { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.client .card.ipaper { display: flex; flex-direction: column; gap: 26px; padding: 30px; }
.iparties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.iparties > div { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--np-muted); min-width: 0; overflow-wrap: anywhere; }
.iparties strong { color: var(--np-ink); font-size: 16px; }
.ilabel { font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--np-blue-ink); margin-bottom: 4px; }
.ilines { width: 100%; border-collapse: collapse; font-size: 15px; }
.ilines th { text-align: left; padding: 10px 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--np-muted); border-bottom: 2px solid var(--np-ink); }
.ilines td { padding: 14px 0; border-bottom: 1px solid var(--np-line); color: var(--np-text); vertical-align: top; }
.ilines .right { text-align: right; padding-left: 16px; white-space: nowrap; }
.itotals { margin: -10px 0 0 auto; width: min(320px, 100%); display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.itotals div { display: flex; justify-content: space-between; gap: 16px; }
.itotals dt { color: var(--np-muted); }
.itotals dd { margin: 0; color: var(--np-ink); }
.itotals .grand { margin-top: 6px; padding: 12px 14px; border-radius: 12px; background: var(--np-ink); }
.itotals .grand dt, .itotals .grand dd { color: var(--white); font-weight: 700; font-size: 17px; }
.ipay { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: 20px; background: linear-gradient(150deg, #0B1F3A, #0A4C9A); color: #FFFFFF; }
.ipay-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.ipay-amount { font: 800 36px/1.1 var(--f-head), sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ipay-approx { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.ipay form { margin-top: 14px; }
.site .btn.ipay-btn { background: #FFFFFF; border-color: #FFFFFF; color: #0B1220; }
.site .btn.ipay-btn:hover { background: #E3F1FF; color: #0B1220; }
.ipay-error { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 123, 110, 0.18); color: #FFD3CE; font-size: 14px; }
.ipay-note { margin: 10px 0 0; font-size: 13.5px; color: rgba(255, 255, 255, 0.78); }
.ipay-nets { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ipay-nets li { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); font-size: 12.5px; font-weight: 600; }
.ipay-facts { margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ipay-facts div { display: flex; justify-content: space-between; gap: 12px; }
.ipay-facts dt { color: rgba(255, 255, 255, 0.7); }
.ipay-facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ipay-docs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.site .ipay-docs .btn { flex: 1 1 130px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.4); color: #FFFFFF; }
.site .ipay-docs .btn:hover { border-color: #FFFFFF; color: #FFFFFF; }
@media (max-width: 900px) {
  .ishow { grid-template-columns: minmax(0, 1fr); }
  .ipay { position: static; order: -1; }
}
@media (max-width: 560px) {
  .iparties { grid-template-columns: minmax(0, 1fr); }
  .client .card.ipaper { padding: 20px; }
}
[data-theme="dark"] .client .itotals .grand { background: var(--np-blue); }
[data-theme="dark"] .client .itotals .grand dt, [data-theme="dark"] .client .itotals .grand dd { color: #04101F; }

/* Pay button on the order pages */
.pay-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 60px; padding: 10px 18px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #0A84FF, #0067D6); color: #FFFFFF; font-family: var(--f-ui), system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 24px rgba(10, 132, 255, 0.28); transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease; }
.pay-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(10, 132, 255, 0.34); filter: brightness(1.05); }
.pay-btn:active { transform: none; }
.pay-btn:focus-visible { outline: 3px solid #0B1220; outline-offset: 3px; }
.pay-btn:disabled { background: var(--np-soft); color: var(--np-muted); box-shadow: none; cursor: not-allowed; transform: none; filter: none; }
.pay-btn-main { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; white-space: nowrap; }
.pay-btn-amount { font-variant-numeric: tabular-nums; }
.pay-lock { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.pay-btn-sub { font-size: 12px; font-weight: 500; opacity: 0.85; white-space: nowrap; }
.pay-btn-inline { width: auto; min-width: 280px; align-self: flex-start; padding-left: 28px; padding-right: 28px; }
@media (max-width: 480px) { .pay-btn-inline { width: 100%; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .pay-btn { transition: none; } .pay-btn:hover { transform: none; } }
[data-theme="dark"] .client .pay-btn:disabled { background: #16213A; color: #93A0B4; }

/* Admin sidebar: signed-in admin card */
.admin-me { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.10); }
.admin-me-who { display: flex; align-items: center; gap: 12px; padding: 4px; border-radius: 12px; color: var(--white); text-decoration: none; min-width: 0; }
.admin-me-who:hover { background: rgba(255, 255, 255, 0.06); color: var(--white); }
.admin-me .avatar { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14); }
.admin-me-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.admin-me-text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-me-text span { font-size: 12.5px; color: var(--sky-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-me-go { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--sky-300); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.admin-me-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-me-acts form { margin: 0; }
.admin-me-acts a, .admin-me-acts button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); background: transparent; color: var(--sky-100); font: 600 13.5px var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.admin-me-acts a:hover, .admin-me-acts a.on { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.admin-me-acts button:hover { background: #7A1F1A; border-color: #FF8A80; color: #FFFFFF; }
.admin-me-acts svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* Admin: customer profile */
.cust-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.cust-head .avatar.lg { box-shadow: 0 0 0 6px var(--sky-100); }
.cust-id { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.cust-id h1 { font-size: clamp(28px, 4vw, 38px); overflow-wrap: anywhere; }
.cust-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cust-acts form { margin: 0; }
.cust-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.cust-stats > div, .cust-stats > a { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--white); border: 1px solid var(--sky-200); border-radius: 16px; }
.cust-stats .n { font: 800 26px/1.15 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.cust-stats span:last-child { font-size: 13px; color: var(--muted); font-weight: 600; }
.cust-stats .bad .n { color: var(--bad); }
.cust-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.cust-facts { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.cust-facts div { display: flex; justify-content: space-between; gap: 12px; }
.cust-facts dt { color: var(--muted); flex: none; }
.cust-facts dd { margin: 0; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.cust-line { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--sky-100); font-size: 14px; color: var(--ink); text-decoration: none; }
.cust-line > .badge, .cust-line > .status { align-self: flex-start; }
a.cust-line:hover { color: var(--blue); }
@media (max-width: 1500px) {
  .cust-grid { grid-template-columns: minmax(0, 1fr); }
  .cust-grid > aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; align-items: start; }
}
@media (max-width: 1100px) { .cust-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cust-grid td.acts { white-space: nowrap; }
@media (max-width: 560px) { .cust-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.send-ch { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.send-ch label, .send-new { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; text-align: left; }
.send-ch input, .send-new input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--blue); }
.send-new > span { display: flex; flex-direction: column; }
.send-details { position: relative; display: inline-block; }
.send-details > summary { list-style: none; cursor: pointer; color: var(--blue); font-weight: 600; font-size: 14px; padding: 6px 8px; text-decoration: underline; white-space: nowrap; }
.send-details > summary::-webkit-details-marker { display: none; }
.send-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--white); border: 1px solid var(--sky-200); border-radius: 14px; box-shadow: 0 18px 40px rgba(11, 18, 32, 0.16); text-align: left; white-space: normal; }
.send-pop .btn { align-self: flex-start; }
.scroll-x:has(.send-details[open]) { overflow: visible; }
.acts .danger-link, .danger-link { color: var(--bad) !important; }
.table tr.row-off td { color: var(--muted); }
.table tr.row-off td a { color: var(--muted); }

/* Admin dashboard: active subscriptions tile */
a.subs-tile { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; transition: border-color 0.15s ease; }
a.subs-tile:hover { border-color: var(--blue); color: var(--ink); }
.subs-go { color: var(--muted); font-weight: 700; }
a.subs-tile:hover .subs-go { color: var(--blue); }
.subs-list { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.subs-list li { display: grid; grid-template-columns: minmax(0, 1fr) 56px 28px; align-items: center; gap: 10px; font-size: 13.5px; }
.subs-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.subs-bar { height: 6px; border-radius: 99px; background: var(--sky-100); overflow: hidden; }
.subs-bar i { display: block; height: 100%; border-radius: 99px; background: var(--blue); }
.subs-n { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { a.subs-tile { transition: none; } }

/* Admin dashboard */
.dcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 14px; }
.dcard { --c: #0B2545; --c2: #12345E; display: flex; align-items: stretch; min-height: 104px; border-radius: 16px; overflow: hidden; color: #FFFFFF; text-decoration: none; background: var(--c2); box-shadow: 0 10px 24px rgba(11, 37, 69, 0.12); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.dcard:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(11, 37, 69, 0.18); color: #FFFFFF; }
.dcard-ico { flex: 0 0 74px; display: grid; place-items: center; background: var(--c); }
.dcard-ico svg { width: 40px; height: 40px; fill: none; stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dcard-body { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; min-width: 0; }
.dcard-n { font: 800 30px/1.05 var(--display); font-variant-numeric: tabular-nums; }
.dcard-l { font-weight: 700; font-size: 14px; line-height: 1.25; }
.dcard-s { font-size: 12.5px; opacity: 0.82; }
.dcard.navy { --c: #0A1C36; --c2: #12345E; }
.dcard.blue { --c: #0459A8; --c2: #0A84FF; }
.dcard.rose { --c: #B0144F; --c2: #DB2E6E; }
.dcard.amber { --c: #B86A06; --c2: #E59A1C; }
.dcard.slate { --c: #3B4A61; --c2: #56677F; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.dside { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card.dpanel { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; }
.dpanel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.dpanel-head h2 { font-size: 19px; }
.dseg { display: inline-flex; border: 1px solid var(--sky-200); border-radius: 10px; overflow: hidden; }
.dseg a { padding: 8px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; border-left: 1px solid var(--sky-200); }
.dseg a:first-child { border-left: 0; }
.dseg a:hover { background: var(--ground); color: var(--ink); }
.dseg a.on { background: var(--ink); color: var(--white); }
.dlegend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.dlegend li { display: inline-flex; align-items: center; gap: 7px; }
.dlegend i { width: 18px; height: 10px; border-radius: 3px; display: inline-block; }
.lg-orders { background: #0B2545; }
.lg-active { background: #2FD1B5; }
.lg-income { background: #BFDBFE; }
.dchart svg { width: 100%; height: auto; display: block; }
.dchart .grid-line { stroke: var(--sky-100); stroke-width: 1; }
.dchart .ax { font: 500 10px var(--body); fill: var(--muted); }
.dchart .bar { fill: #BFDBFE; }
.dchart .bar:hover { fill: #93C5FD; }
.dchart .ln-orders { fill: none; stroke: #0B2545; stroke-width: 2.2; stroke-linejoin: round; }
.dchart .ln-active { fill: none; stroke: #2FD1B5; stroke-width: 2.2; stroke-linejoin: round; stroke-dasharray: 5 3; }
.dchart .dot-orders { fill: #0B2545; }
.dchart .dot-active { fill: #2FD1B5; }
.dbill { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--sky-100); margin: 0 -22px -20px; }
.dbill div { display: flex; flex-direction: column; gap: 2px; padding: 16px 22px; border-bottom: 1px solid var(--sky-100); min-width: 0; }
.dbill div:nth-child(odd) { border-right: 1px solid var(--sky-100); }
.dbill div:nth-last-child(-n+2) { border-bottom: 0; }
.dbill .v { font: 800 21px/1.15 var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dbill .l { font-size: 13px; color: var(--muted); }
.t-blue { color: #0A6BD6 !important; }
.t-amber { color: #C27606 !important; }
.t-rose { color: #C21A5B !important; }
.dtodo { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--ground); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.dtodo:hover { background: var(--sky-100); color: var(--ink); }
.dtodo .go { margin-left: auto; color: var(--muted); }
.dtodo-n { min-width: 30px; height: 26px; padding: 0 8px; border-radius: 8px; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--sky-100); color: var(--ink); }
.dtodo-n.bad { background: var(--bad-bg); color: var(--bad-ink); }
.dtodo-n.warn { background: var(--warn-bg); color: var(--warn-ink); }
@media (max-width: 1200px) { .dgrid { grid-template-columns: minmax(0, 1fr); } .dside { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .dcard { transition: none; } .dcard:hover { transform: none; } }

/* Order pages: the summary ("Your order") stays in view while the form scrolls. */
@media (min-width: 901px) {
  .split > aside.side { position: sticky; top: 92px; align-self: flex-start; max-height: calc(100vh - 110px); overflow-y: auto; }
}

/* Help centre and announcements */
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.kb-cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--white); border: 1px solid var(--np-line); border-radius: 18px; color: var(--np-text); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.kb-cat:hover { border-color: var(--np-blue); transform: translateY(-2px); color: var(--np-text); }
.kb-cat strong { color: var(--np-ink); font-size: 17px; }
.kb-cat-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #E8F2FF; margin-bottom: 4px; }
.kb-cat-ico .mi { width: 22px; height: 22px; stroke: #0A84FF; }
.kb-cat-n { margin-top: auto; padding-top: 6px; font-size: 13.5px; font-weight: 700; color: var(--np-blue-ink); }
.kb-row { display: flex; flex-direction: column; gap: 3px; padding: 16px 18px; background: var(--white); border: 1px solid var(--np-line); border-radius: 14px; color: var(--np-text); text-decoration: none; }
.kb-row:hover { border-color: var(--np-blue); color: var(--np-text); }
.kb-row strong { color: var(--np-ink); font-size: 16px; }
.kb-row-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--np-blue-ink); }
.kb-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.kb-link { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--np-line); color: var(--np-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.kb-link:hover { color: var(--np-blue-ink); }
.kb-link .tiny { white-space: nowrap; font-weight: 500; }
.kb-still { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 20px 22px; border-radius: 18px; background: #EAF3FF; border: 1px solid #CFE3FF; }
.kb-still strong { color: var(--np-ink); font-size: 17px; }
.kb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--np-muted); }
.kb-crumbs a { color: var(--np-muted); }
.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.card.kb-article { display: flex; flex-direction: column; gap: 10px; padding: 32px; }
.kb-article h1 { font-size: clamp(28px, 4vw, 38px); }
.kb-article .prose { margin-top: 8px; max-width: 72ch; }
.kb-article .prose code { background: var(--np-soft); padding: 1px 6px; border-radius: 6px; font-size: 0.92em; }
.kb-article .prose pre { background: #0B1220; color: #E5E7EB; padding: 14px 16px; border-radius: 12px; overflow-x: auto; }
.kb-article .prose pre code { background: none; padding: 0; color: inherit; }
.kb-article .prose img { max-width: 100%; border-radius: 12px; }
.kb-vote { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--np-line); }
.kb-side-wrap { min-width: 0; }
.card.kb-side { padding: 18px 20px; }
.kb-side-title { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--np-muted); margin-bottom: 4px; }
.kb-side-link { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; color: var(--np-ink); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.kb-side-link:hover { background: var(--np-soft); color: var(--np-ink); }
.kb-side-link.on { background: #E8F2FF; font-weight: 700; }
.ann-card { display: flex; gap: 18px; padding: 18px 20px; background: var(--white); border: 1px solid var(--np-line); border-radius: 16px; color: var(--np-text); text-decoration: none; }
.ann-card:hover { border-color: var(--np-blue); color: var(--np-text); }
.ann-card strong { color: var(--np-ink); font-size: 17px; }
.ann-date { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 14px; background: #0B1F3A; color: #A9BCD6; font-size: 11px; font-weight: 600; text-align: center; }
.ann-date b { font: 800 24px/1 var(--f-head), sans-serif; color: #FFFFFF; }
.ann-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px; border-radius: 14px; background: #EAF3FF; border: 1px solid #CFE3FF; color: var(--np-ink); text-decoration: none; }
.ann-banner:hover { border-color: var(--np-blue); color: var(--np-ink); }
.ann-banner .tag { padding: 3px 10px; border-radius: 999px; background: #0B1F3A; color: #FFFFFF; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.ann-banner .grow { flex: 1 1 240px; min-width: 0; }
@media (max-width: 900px) { .kb-layout { grid-template-columns: minmax(0, 1fr); } .card.kb-article { padding: 22px 18px; } }
@media (prefers-reduced-motion: reduce) { .kb-cat { transition: none; } .kb-cat:hover { transform: none; } }
[data-theme="dark"] .client .kb-still, [data-theme="dark"] .client .ann-banner { background: #10223C; border-color: #223049; }
[data-theme="dark"] .client .kb-cat-ico, [data-theme="dark"] .client .kb-side-link.on { background: #13243D; }

/* Phones: order total and Pay button fixed to the bottom of order pages */
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; align-items: center; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(8px); border-top: 1px solid #E5E7EB; box-shadow: 0 -10px 30px rgba(11, 18, 32, 0.12);
  transform: translateY(110%); transition: transform 0.2s ease; }
.paybar.on { display: flex; transform: none; }
.paybar-sum { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.paybar-k { font-size: 12px; font-weight: 600; color: #5B6676; }
.paybar-v { font: 800 20px/1.2 var(--f-head), sans-serif; color: #0B1220; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.paybar-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #0A84FF, #0067D6); color: #FFFFFF; font: 700 16px var(--f-ui), sans-serif; cursor: pointer; box-shadow: 0 8px 20px rgba(10, 132, 255, 0.3); white-space: nowrap; }
.paybar-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.paybar-btn:disabled { background: #E5E7EB; color: #6B7280; box-shadow: none; cursor: not-allowed; }
.paybar-btn:focus-visible { outline: 3px solid #0B1220; outline-offset: 3px; }
body.has-paybar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
/* The arrow in the middle of the bar, and the order it opens above the total */
.paybar { flex-wrap: wrap; }
.paybar-toggle { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 44px; height: 30px; border-radius: 999px; border: 1px solid #D7E3F1; background: #FFFFFF; color: #0B1F3A; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 -4px 14px rgba(11, 18, 32, 0.12); }
.paybar-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s ease; }
.paybar.open .paybar-toggle svg { transform: rotate(180deg); }
.paybar-toggle:focus-visible { outline: 3px solid #0B1220; outline-offset: 2px; }
.paysheet { flex: 1 1 100%; max-height: 55vh; overflow-y: auto; padding: 14px 2px 12px; border-bottom: 1px solid #E5E7EB; margin-bottom: 2px; }
.paysheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.paysheet-top strong { font: 700 17px var(--f-head), sans-serif; color: #0B1220; }
.paysheet-all { border: 0; background: none; color: var(--blue); font: 600 14px var(--f-ui), sans-serif; text-decoration: underline; cursor: pointer; padding: 6px 0; }
.paysheet-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.paysheet-list li { display: flex; justify-content: space-between; gap: 12px; }
.paysheet-list li span { overflow-wrap: anywhere; font-weight: 600; color: #0B1220; }
.paysheet-list li strong { white-space: nowrap; }
.paysheet-head { font-weight: 600; color: #0B1220; }
.paysheet-list:empty { display: none; }
.paysheet-list:empty + .paysheet-empty[hidden] + .sum { border-top: 0; padding-top: 0; }
.paysheet-empty { margin: 0 0 12px; color: #5B6676; font-size: 14px; }
.paysheet .sum { font-size: 14px; gap: 8px; border-top: 1px dashed #B5D4F4; padding-top: 10px; }
[data-theme="dark"] .paybar-toggle { background: #0F1726; border-color: #223049; color: #EAF2FB; }
[data-theme="dark"] .paysheet-top strong, [data-theme="dark"] .paysheet-list li span, [data-theme="dark"] .paysheet-head { color: #EAF2FB; }
[data-theme="dark"] .paysheet { border-color: #223049; }
@media (min-width: 901px) { .paybar { display: none !important; } body.has-paybar { padding-bottom: 0; } }
@media (prefers-reduced-motion: reduce) { .paybar { transition: none; } }
[data-theme="dark"] .client .paybar, [data-theme="dark"] body.client > .paybar { background: rgba(15, 23, 38, 0.97); border-color: #223049; }
[data-theme="dark"] .paybar-v { color: #EAF2FB; }

/* AI chat assistant */
.ai { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55; font-family: var(--f-ui), system-ui, sans-serif; }
body.has-paybar .ai { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.ai-fab { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border: 0; border-radius: 999px; background: #0B1F3A; color: #FFFFFF; font: 700 15px var(--f-ui), sans-serif; cursor: pointer; box-shadow: 0 12px 28px rgba(11, 31, 58, 0.3); }
.ai-fab svg { width: 24px; height: 24px; fill: none; stroke: #2FD1B5; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-fab:hover { background: #12345E; }
.ai.open .ai-fab { display: none; }
.ai-panel { position: absolute; right: 0; bottom: 0; width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 20px; box-shadow: 0 24px 60px rgba(11, 18, 32, 0.25); overflow: hidden; }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: #0B1F3A; color: #FFFFFF; }
.ai-avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #2FD1B5, #2F7DF6); font-weight: 800; font-size: 12px; flex: none; }
.ai-title { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.ai-title strong { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-title span { font-size: 12px; color: #A9BCD6; }
.ai-new, .ai-close { border: 0; background: rgba(255, 255, 255, 0.1); color: #FFFFFF; border-radius: 10px; cursor: pointer; font: 600 12.5px var(--f-ui), sans-serif; min-height: 34px; padding: 0 10px; }
.ai-close { width: 34px; padding: 0; font-size: 20px; line-height: 1; }
.ai-new:hover, .ai-close:hover { background: rgba(255, 255, 255, 0.2); }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #F6F9FC; }
.ai-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; color: #1F2937; background: #FFFFFF; border: 1px solid #E5E7EB; overflow-wrap: anywhere; }
.ai-msg.bot { align-self: flex-start; border-bottom-left-radius: 4px; }
.ai-msg.me { align-self: flex-end; background: #0A84FF; border-color: #0A84FF; color: #FFFFFF; border-bottom-right-radius: 4px; }
.ai-msg a { color: #0067D6; font-weight: 600; }
.ai-msg.me a { color: #FFFFFF; }
.ai-msg.typing { color: #6B7686; letter-spacing: 2px; }
.ai-msg.ticket { background: #E3F6EE; border-color: #B7E6D1; color: #0B4F35; font-weight: 600; }
.ai-chips { display: flex; gap: 6px; padding: 8px 12px 0; overflow-x: auto; background: #F6F9FC; scrollbar-width: none; }
.ai-chips button { flex: none; border: 1px solid #CFE3FF; background: #FFFFFF; color: #0B1F3A; border-radius: 999px; padding: 6px 12px; font: 600 12.5px var(--f-ui), sans-serif; cursor: pointer; }
.ai-chips button:hover { border-color: #0A84FF; }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #E5E7EB; background: #FFFFFF; }
.ai-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid #DCE6F0; border-radius: 12px; padding: 10px 12px; font: 15px/1.4 var(--f-ui), sans-serif; color: #0B1220; max-height: 120px; }
.ai-form textarea:focus { outline: none; border-color: #0A84FF; box-shadow: 0 0 0 3px #E3F1FF; }
.ai-send { width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: #0A84FF; color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.ai-send:disabled { background: #CBD5E1; cursor: wait; }
.ai-send svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ai-note { margin: 0; padding: 0 12px 10px; font-size: 11.5px; color: #8391A4; background: #FFFFFF; }
@media (max-width: 560px) {
  .ai-fab-label { display: none; }
  .ai-fab { padding: 0; width: 54px; justify-content: center; }
  .ai.open { left: 0; right: 0; bottom: 0; }
  .ai-panel { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; border: 0; padding-top: env(safe-area-inset-top, 0px); }
}
.news-row { display: flex; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--np-line); color: var(--np-text); text-decoration: none; }
.news-row:hover { background: var(--ground); color: var(--np-text); }
.news-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-row strong { color: var(--np-ink); }
.ann-date.small-date { flex: 0 0 48px; height: 48px; border-radius: 12px; font-size: 10px; }
.ann-date.small-date b { font-size: 18px; }

/* Admin: staff */
.invite-link { display: flex; flex-direction: column; gap: 10px; border-color: var(--blue); background: var(--sky-100); }
.staff-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.role-pick { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.role-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--sky-200); border-radius: 12px; cursor: pointer; }
.role-opt:has(input:checked) { border-color: var(--blue); background: var(--sky-100); }
.role-opt input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); flex: none; }
.role-opt > span { display: flex; flex-direction: column; gap: 2px; }
.role-matrix .center { text-align: center; }
.role-matrix .yes { color: var(--blue); font-weight: 800; }
.role-matrix .no { color: var(--sky-300); }
@media (max-width: 1500px) { .staff-grid { grid-template-columns: minmax(0, 1fr); } }

/* Admin sidebar, compact: groups, icons, its own scroll */
.admin { flex-wrap: nowrap; }
.admin > .sidebar { flex: 0 0 252px; width: 252px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; padding: 18px 12px 12px; gap: 14px; background: #0B1F3A; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.15) transparent; }
.sidebar > .brand { font-size: 18px; padding: 2px 10px 6px; }
.sidebar > .brand .dot { width: 28px; height: 28px; }
.side-groups { display: flex; flex-direction: column; gap: 14px; }
.side-group { display: flex; flex-direction: column; gap: 1px; }
.side-label { padding: 0 10px 4px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6F86A6; }
.sidebar .side-group a { display: flex; align-items: center; gap: 11px; min-height: 36px; padding: 0 10px; border-radius: 9px; color: #C9D6E8; font-size: 14px; font-weight: 500; text-decoration: none; justify-content: flex-start; }
.sidebar .side-group a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.sidebar .side-group a:hover { background: rgba(255, 255, 255, 0.07); color: #FFFFFF; }
.sidebar .side-group a.on { background: #FFFFFF; color: #0B1F3A; font-weight: 700; }
.sidebar .side-group a.on svg { opacity: 1; stroke: #0A84FF; }
.side-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .side-group .count { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: #2FD1B5; color: #0B1F3A; font-size: 11.5px; font-weight: 800; }
.side-foot-admin { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.side-store { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: 9px; color: #8FA3BF; font-size: 13px; font-weight: 600; text-decoration: none; }
.side-store:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.07); }
.side-store svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.side-me { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.side-me form { margin: 0; }
.side-me > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 9px; color: #FFFFFF; text-decoration: none; }
.side-me > a:hover, .side-me > a.on { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; }
.side-me .avatar { width: 32px; height: 32px; font-size: 12px; box-shadow: none; }
.side-me-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.side-me-text strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-me-text span { font-size: 11.5px; color: #8FA3BF; }
.side-out { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 9px; background: transparent; color: #8FA3BF; cursor: pointer; }
.side-out:hover { background: rgba(255, 123, 110, 0.18); color: #FFB4AC; }
.side-out svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.admin > main { flex: 1 1 auto; }
@media (max-width: 900px) {
  .admin > .sidebar { position: fixed; height: auto; width: min(280px, 86vw); flex: none; }
}
.tin-note { display: block; padding: 8px 10px; border-radius: 10px; background: #FFF6E5; border-left: 3px solid #E5A00D; color: #6B4A06; font-size: 12.5px; line-height: 1.45; }
[data-theme="dark"] .client .tin-note { background: #2A2010; color: #F5C46B; }

/* Site footer */
.np-foot { margin-top: 48px; background: #F7F9FC; border-top: 4px solid transparent; border-image: linear-gradient(90deg, #0067D6, #0A84FF 60%, #2FD1B5) 1; font-family: var(--f-ui), system-ui, sans-serif; color: #4B5563; }
.np-foot-main { max-width: 1240px; margin: 0 auto; padding: 56px max(24px, env(safe-area-inset-right, 0px)) 40px max(24px, env(safe-area-inset-left, 0px)); display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.np-foot-logo { display: inline-flex; align-items: center; text-decoration: none; }
.np-foot-logo img { max-height: 44px; max-width: 190px; }
.np-foot-logo span { font: 800 22px var(--f-head), sans-serif; color: #0B1220; }
.np-foot-tag { margin: 22px 0 14px; font-size: 15px; color: #4B5563; }
.np-foot-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.np-foot-contact li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.np-foot-contact svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #6B7686; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.np-foot-contact a, .np-foot-contact span { color: #374151; text-decoration: none; }
.np-foot-contact a:hover { color: #0067D6; }
.np-foot-social { display: flex; gap: 10px; margin-top: 18px; }
.np-foot-social a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #6B7686; border: 1px solid #E3E8EF; background: #FFFFFF; }
.np-foot-social a:hover { color: #0067D6; border-color: #0A84FF; }
.np-foot-social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.np-foot-col h2 { margin: 6px 0 18px; font: 700 18px var(--f-head), sans-serif; color: #0B1220; letter-spacing: -0.01em; }
.np-foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.np-foot-col a { color: #4B5563; text-decoration: none; font-size: 15.5px; }
.np-foot-col a:hover { color: #0067D6; text-decoration: underline; }
.np-foot-bar { border-top: 1px solid #E3E8EF; max-width: 1240px; margin: 0 auto; padding: 18px max(24px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; font-size: 14px; color: #4B5563; }
.np-foot-bar a { color: #6B7686; }
@media (max-width: 900px) { .np-foot-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } .np-foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .np-foot-main { gap: 28px 20px; padding-top: 40px; } }
@media (max-width: 340px) { .np-foot-main { grid-template-columns: minmax(0, 1fr); } }
[data-theme="dark"] .client .np-foot { background: #0A1220; color: #A9B6C8; }
[data-theme="dark"] .client .np-foot-col h2, [data-theme="dark"] .client .np-foot-logo span { color: #EAF2FB; }
[data-theme="dark"] .client .np-foot-col a, [data-theme="dark"] .client .np-foot-contact a, [data-theme="dark"] .client .np-foot-contact span, [data-theme="dark"] .client .np-foot-bar { color: #A9B6C8; }
[data-theme="dark"] .client .np-foot-bar, [data-theme="dark"] .client .np-foot-social a { border-color: #223049; }
[data-theme="dark"] .client .np-foot-social a { background: #0F1726; }
/* Dark mode: the logo made for dark backgrounds when there is one; else the usual logo on a white plate so it stays readable. */
.np-foot-logo img.np-foot-dark { display: none; }
[data-theme="dark"] .client .np-foot-logo img:not(.np-foot-light):not(.np-foot-dark) { background: #FFFFFF; padding: 4px 8px; border-radius: 8px; }
[data-theme="dark"] .client .np-foot-logo img.np-foot-light { display: none; }
[data-theme="dark"] .client .np-foot-logo img.np-foot-dark { display: block; }
.send-ch label.off { color: var(--muted); cursor: default; }
.send-why { margin-left: 4px; font-size: 12px; font-style: italic; color: var(--muted); }
.table .acts .send-pop .btn { display: inline-flex; align-self: flex-start; min-height: 38px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: #FFFFFF; border: 0; text-decoration: none; font: 700 14px var(--body); }
.table .acts .send-pop .btn:hover { background: #12345E; color: #FFFFFF; }

/* Account balance (add funds) */
.fund-hero, .aff-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr); gap: 24px 36px; align-items: center; padding: 28px 30px; border-radius: 22px; background: linear-gradient(120deg, #0B1F3A 0%, #0A4C9A 70%, #1D7FE0 100%); color: #FFFFFF; }
.fund-bal, .aff-linkbox { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fund-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.fund-amount { font: 800 clamp(34px, 5vw, 50px)/1.05 var(--f-head), sans-serif; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.fund-approx { font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.fund-about { margin: 10px 0 0; max-width: 46ch; font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.fund-form, .aff-join { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 18px; background: #FFFFFF; color: #0B1220; box-shadow: 0 18px 40px -18px rgba(3, 18, 40, 0.55); }
.fund-form-title { font: 700 18px var(--f-head), sans-serif; color: #0B1F3A; }
.fund-input { display: flex; align-items: center; border: 2px solid #0B1F3A; border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.fund-input span { padding: 0 4px 0 16px; font: 700 15px var(--f-ui), sans-serif; color: #5B6B82; }
.fund-input input { flex: 1; min-width: 0; border: 0; padding: 13px 14px 13px 6px; font: 700 24px var(--f-head), sans-serif; color: #0B1F3A; background: transparent; font-variant-numeric: tabular-nums; }
.fund-input input:focus { outline: none; }
.fund-input:focus-within { box-shadow: 0 0 0 4px rgba(29, 127, 224, 0.25); }
.fund-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fund-chips button { padding: 7px 13px; border: 1px solid #C9DDF3; border-radius: 999px; background: #F2F8FF; font: 600 13.5px var(--f-ui), sans-serif; color: #0A4C9A; cursor: pointer; }
.fund-chips button:hover, .fund-chips button.on { background: #0B1F3A; border-color: #0B1F3A; color: #FFFFFF; }
.fund-help { font-size: 12.5px; color: #5B6B82; }
.fund-error { font-size: 13.5px; font-weight: 600; color: #B42318; }
.site .btn.fund-go { background: #1D7FE0; border-color: #1D7FE0; color: #FFFFFF; }
.site .btn.fund-go:hover { background: #0A4C9A; border-color: #0A4C9A; color: #FFFFFF; }
.fund-due { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fund-due li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 0; border-top: 1px solid var(--np-line); }
.fund-due .grow { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; }
.ledger { list-style: none; margin: 0; padding: 0 22px 10px; }
.ledger li { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-top: 1px solid var(--np-line); }
.ledger .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ledger-dot { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--np-soft); font: 700 17px var(--f-head), sans-serif; color: var(--np-muted); }
.ledger-dot.in { background: #E3F1FF; color: #0A4C9A; }
.ledger-amt { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.ledger-amt .num { font: 700 16px var(--f-head), sans-serif; color: var(--np-ink); }
.ledger-amt .num.in { color: #0A6FD6; }
.bal-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #E3F1FF; color: #0A4C9A; font: 700 13px var(--f-ui), sans-serif; text-decoration: none; white-space: nowrap; }
.bal-chip:hover { background: #0B1F3A; color: #FFFFFF; }
.bal-chip .bal-k { font-weight: 600; opacity: .8; }
.bal-chip .bal-add { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 999px; background: currentColor; color: inherit; font-size: 14px; line-height: 1; }
.bal-chip .bal-add { background: #0A4C9A; color: #FFFFFF; }
.bal-chip:hover .bal-add { background: #FFFFFF; color: #0B1F3A; }
.ipay-balance { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: #F2F8FF; border: 1px solid #C9DDF3; }
.ipay-balance strong { color: #0B1F3A; }
[data-theme="dark"] .ledger-dot.in, [data-theme="dark"] .bal-chip { background: #12305A; color: #9CCBFF; }
[data-theme="dark"] .ipay-balance { background: #12223A; border-color: #23446F; }
[data-theme="dark"] .ipay-balance strong { color: #EAF2FB; }

/* Affiliates */
.aff-pitch { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.aff-rate { font: 800 clamp(56px, 9vw, 92px)/0.95 var(--f-head), sans-serif; letter-spacing: -0.04em; }
.aff-lead { margin: 0; font-size: 18px; font-weight: 600; max-width: 30ch; }
.aff-steps { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.aff-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: rgba(255, 255, 255, 0.86); }
.aff-steps b { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.14); font: 700 13px var(--f-head), sans-serif; color: #FFFFFF; }
.aff-join strong { font: 700 20px var(--f-head), sans-serif; color: #0B1F3A; }
.aff-join .small { color: #5B6B82; }
.aff-terms-card summary { cursor: pointer; list-style-position: outside; margin-left: 18px; }
.aff-terms-card summary h2 { display: inline; font-size: 20px; }
.aff-terms-body { max-width: 760px; margin-top: 12px; font-size: 15px; line-height: 1.65; color: var(--np-text); }
.aff-terms-body h3 { margin: 18px 0 4px; font-size: 16px; }
.aff-terms-body p { margin: 0 0 6px; }
.aff-terms-body .aff-terms-li { padding-left: 18px; position: relative; }
.aff-terms-body .aff-terms-li::before { content: "•"; position: absolute; left: 4px; color: var(--np-muted); }
.aff-terms summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: #0A4C9A; }
.aff-terms div { margin-top: 6px; max-height: 180px; overflow: auto; font-size: 13px; color: #374151; }
.aff-link { display: flex; gap: 8px; margin-top: 6px; padding: 6px 6px 6px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.aff-link input { flex: 1; min-width: 0; border: 0; background: transparent; color: #FFFFFF; font: 600 16px ui-monospace, Menlo, monospace; }
.aff-link input:focus { outline: none; }
.aff-share { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.aff-share a { color: #BFE0FF; font-size: 14px; font-weight: 600; }
.aff-share a:hover { color: #FFFFFF; }
.aff-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.aff-stats div { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); }
.aff-stats dt { font-size: 12.5px; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.aff-stats dd { margin: 4px 0 0; font: 800 28px var(--f-head), sans-serif; font-variant-numeric: tabular-nums; }
.aff-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.aff-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0; }
.aff-totals div { padding: 14px 16px; border-radius: 14px; background: var(--ground); border: 1px solid var(--np-line); }
.aff-totals .ready { background: #0B1F3A; border-color: #0B1F3A; color: #FFFFFF; }
.aff-totals dt { font-size: 12.5px; font-weight: 600; color: var(--np-muted); }
.aff-totals .ready dt { color: rgba(255, 255, 255, 0.75); }
.aff-totals dd { margin: 4px 0 0; font: 700 20px var(--f-head), sans-serif; font-variant-numeric: tabular-nums; }
.aff-withdraw { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.seg-pick { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.seg-pick label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--np-line); border-radius: 14px; cursor: pointer; }
.seg-pick label:has(input:checked) { border-color: var(--np-blue); box-shadow: 0 0 0 1px var(--np-blue); }
.seg-pick label.off { opacity: 0.55; cursor: not-allowed; }
.seg-pick label > span { display: flex; flex-direction: column; }
.seg-pick input { margin-top: 3px; accent-color: #1D7FE0; }
@media (max-width: 860px) {
  .fund-hero, .aff-hero, .aff-grid { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .aff-grid { padding: 0; }
  .aff-stats dd { font-size: 22px; }
}

/* Client invoices list: a statement, not a stack of cards */
.bill-sum { display: grid; grid-template-columns: 1.25fr 1fr 1fr; background: var(--white); border: 1px solid var(--np-line); border-radius: 20px; overflow: hidden; }
.bill-cell { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 22px 26px; min-width: 0; }
.bill-cell + .bill-cell { border-left: 1px solid var(--np-line); }
.bill-cell.owed { background: linear-gradient(135deg, #0B1F3A, #0A4C9A); color: #FFFFFF; }
.bill-cell.owed.clear { background: var(--white); color: inherit; }
.bill-cell.owed.late::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #F5A524; }
.bill-k { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--np-muted); }
.bill-v { font: 800 clamp(24px, 2.6vw, 32px)/1.15 var(--f-head), sans-serif; letter-spacing: -0.02em; color: var(--np-ink); font-variant-numeric: tabular-nums; }
.bill-sub { font-size: 13.5px; color: var(--np-muted); }
.bill-cell.owed:not(.clear) .bill-k { color: rgba(255, 255, 255, 0.7); }
.bill-cell.owed:not(.clear) .bill-v { color: #FFFFFF; }
.bill-cell.owed:not(.clear) .bill-sub { color: rgba(255, 255, 255, 0.82); }
.bill-cell.owed .bill-sub b { color: #FFD48A; }
.bill-cell form { margin: 0; }
.site .btn.bill-go { margin-top: 8px; background: #FFFFFF; border-color: #FFFFFF; color: #0B1F3A; font-weight: 700; }
.site .btn.bill-go:hover { background: #E3F1FF; border-color: #E3F1FF; color: #0B1F3A; }
.bill-link { margin-top: auto; padding-top: 8px; font-size: 14px; font-weight: 700; color: var(--np-blue-ink); text-decoration: none; }
.bill-link:hover { text-decoration: underline; }
.bill-tabs { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--np-line); }
.bill-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0 12px; margin-bottom: -1px; border-bottom: 2.5px solid transparent; font-weight: 600; font-size: 15px; color: var(--np-muted); text-decoration: none; }
.bill-tabs a:hover { color: var(--np-ink); }
.bill-tabs a.on { color: var(--np-ink); border-bottom-color: var(--np-ink); }
.bill-tabs .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--np-soft); font-size: 12px; font-weight: 700; text-align: center; color: var(--np-muted); }
.bill-tabs .n.hot { background: #FDECC8; color: #8A5300; }
.bill-month { display: flex; flex-direction: column; gap: 8px; }
.bill-mh { display: flex; justify-content: space-between; gap: 12px; margin: 6px 4px 0; font: 700 13px var(--f-ui), sans-serif; letter-spacing: 0.06em; text-transform: uppercase; color: var(--np-muted); }
.bill-list { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--np-line); border-radius: 18px; overflow: hidden; }
.bill-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto 172px; align-items: center; gap: 4px 20px; padding: 14px 20px; }
.bill-row + .bill-row { border-top: 1px solid var(--np-line); }
.bill-row:hover { background: var(--ground); }
.bill-day { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--np-soft); color: var(--np-ink); text-decoration: none; line-height: 1.05; }
.bill-day b { font: 800 19px var(--f-head), sans-serif; }
.bill-day span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--np-muted); }
.bill-row.warn .bill-day, .bill-row.bad .bill-day { background: #FFF4DF; }
.bill-row.due .bill-day { background: #E3F1FF; }
.bill-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.site .bill-list .bill-what { font-weight: 600; font-size: 15.5px; color: var(--np-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .bill-list .bill-what:hover { color: var(--np-blue-ink); text-decoration: underline; }
.bill-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; font-size: 13px; color: var(--np-muted); }
.bill-no { font-weight: 700; color: var(--np-text); font-variant-numeric: tabular-nums; }
.bill-state { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bill-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.bill-state.ok { color: #0A6FD6; }
.bill-state.warn { color: #B26A00; }
.bill-state.bad { color: var(--bad-ink); }
.bill-state.due { color: var(--np-ink); }
.bill-state.muted { color: var(--np-muted); }
.bill-why { color: var(--bad-ink); }
.bill-amt { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.bill-amt .num { font: 700 17px var(--f-head), sans-serif; color: var(--np-ink); }
.bill-row.ok .bill-amt .num { color: var(--np-muted); font-weight: 600; }
.bill-acts { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.site .btn.bill-pay { margin-right: 6px; min-width: 72px; background: #1D7FE0; border-color: #1D7FE0; color: #FFFFFF; }
.site .btn.bill-pay:hover { background: #0B1F3A; border-color: #0B1F3A; color: #FFFFFF; }
.bill-ico { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; color: var(--np-muted); }
.bill-ico:hover { background: var(--np-soft); color: var(--np-ink); }
.bill-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bill-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 20px; text-align: center; border: 1.5px dashed var(--np-line); border-radius: 18px; }
[data-theme="dark"] .bill-row.warn .bill-day, [data-theme="dark"] .bill-row.bad .bill-day { background: #2A2010; }
[data-theme="dark"] .bill-row.due .bill-day { background: #12305A; }
[data-theme="dark"] .bill-tabs .n.hot { background: #3A2A0C; color: #FFD48A; }
@media (max-width: 860px) {
  .bill-sum { grid-template-columns: 1fr 1fr; }
  .bill-cell.owed { grid-column: 1 / -1; }
  .bill-cell.owed + .bill-cell { border-left: 0; }
  .bill-cell:not(.owed) { border-top: 1px solid var(--np-line); }
  .bill-cell { padding: 18px; }
  .bill-v { font-size: 20px; white-space: nowrap; }
  .bill-row { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 14px 16px; gap: 10px 12px; align-items: start; }
  .bill-day { width: 44px; height: 44px; }
  .bill-main { grid-column: 2 / -1; }
  .site .bill-list .bill-what { white-space: normal; }
  .bill-amt { grid-column: 2; grid-row: 2; align-self: center; align-items: flex-start; }
  .bill-acts { grid-column: 3; grid-row: 2; }
  .bill-acts .bill-ico[target="_blank"] { display: none; }
  .bill-amt .num { font-size: 16px; }
}

/* Contacts (bill a service to a client) */
.ct-card { display: flex; flex-direction: column; gap: 12px; }
.ct-head { display: flex; align-items: flex-start; gap: 14px; }
.ct-head .grow { flex: 1; }
.ct-services { display: flex; flex-wrap: wrap; gap: 6px; }
.ct-chip { padding: 5px 11px; border-radius: 999px; background: #E3F1FF; color: #0A4C9A; font-size: 13px; font-weight: 600; text-decoration: none; }
.ct-chip:hover { background: #0B1F3A; color: #FFFFFF; }
.ct-card details summary, .card > summary { cursor: pointer; color: var(--np-blue-ink); }
.billto { display: flex; flex-direction: column; gap: 8px; }
.billto select { max-width: 420px; }
[data-theme="dark"] .ct-chip { background: #12305A; color: #9CCBFF; }

/* Team members on a customer account */
.team-access { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.team-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.team-svc { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--np-line); border-radius: 12px; cursor: pointer; }
.team-svc:has(input:checked) { border-color: var(--np-blue); background: #F2F8FF; }
.team-svc > span { display: flex; flex-direction: column; min-width: 0; }
.team-svc input { margin-top: 3px; accent-color: #1D7FE0; }
.member-bar { background: #0B1F3A; color: #FFFFFF; font-size: 14px; }
.member-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-top: 8px; padding-bottom: 8px; }
.member-bar b { color: #9CCBFF; }
[data-theme="dark"] .team-svc:has(input:checked) { background: #12223A; }
.tperm-box { border: 1px solid var(--np-line); border-radius: 14px; padding: 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tperm-box > legend { padding: 0 6px; }
.tperm-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tperm-presets { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.tperm-presets button { padding: 4px 10px; border: 1px solid var(--np-line); border-radius: 999px; background: var(--white); font: 600 12.5px var(--f-ui), sans-serif; color: var(--np-muted); cursor: pointer; }
.tperm-presets button:hover { border-color: var(--np-ink); color: var(--np-ink); }
.tperm-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tchip { position: relative; cursor: pointer; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--np-line); border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--np-muted); background: var(--white); }
.tchip span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; }
.tchip input:checked + span { border-color: #1D7FE0; background: #E3F1FF; color: #0A4C9A; }
.tchip input:checked + span::before { background: #1D7FE0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; border-color: #1D7FE0; }
.tchip input:focus-visible + span { outline: 3px solid var(--np-blue); outline-offset: 2px; }
.tchip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.tchip.sm span { padding: 5px 10px; font-size: 12.5px; }
.tsvc { display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 8px 16px; align-items: center; padding: 10px 12px; border: 1px solid var(--np-line); border-radius: 12px; }
.tsvc.on { border-color: #9CCBFF; background: #F7FBFF; }
.tsvc-name { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.tsvc-name > span { display: flex; flex-direction: column; min-width: 0; }
.tsvc-name input { margin-top: 3px; accent-color: #1D7FE0; }
[data-theme="dark"] .tchip input:checked + span { background: #12305A; color: #9CCBFF; }
[data-theme="dark"] .tsvc.on { background: #12223A; border-color: #23446F; }
@media (max-width: 640px) { .tsvc { grid-template-columns: minmax(0, 1fr); } }
.tnotify:has(input:checked) { border-color: #9CCBFF; background: #F0F9FF; }
.tnotify-pick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.tnotify-pick > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tnotify-pick input { margin-top: 3px; accent-color: #1D7FE0; }
.tnotify-on { color: #0A6AB8; font-weight: 600; }
[data-theme="dark"] .tnotify:has(input:checked) { background: #12223A; border-color: #23446F; }
[data-theme="dark"] .tnotify-on { color: #7DBBFF; }

/* Web address with a fixed ending (an app's own address: name.kanisa.or.tz) */
.addr-input { display: flex; align-items: stretch; border: 2px solid var(--sky-300); border-radius: 14px; background: var(--white); overflow: hidden; }
.addr-input:focus-within { border-color: var(--blue); }
.addr-input .input { border: 0; border-radius: 0; min-width: 0; flex: 1; }
.addr-suffix { display: flex; align-items: center; padding: 0 14px; background: var(--sky-100); color: var(--ink); font-weight: 600; font-size: 15px; white-space: nowrap; border-left: 2px solid var(--sky-300); }
@media (max-width: 480px) {
    .addr-suffix { padding: 0 10px; font-size: 14px; }
    .addr-input .input { padding: 0 10px; }
}

/* A secret shown once, to copy into the other system */
.secret-once { display: grid; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--sky-100); border: 2px solid var(--blue); }
.secret-row { display: flex; gap: 8px; }
.secret-row .input { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, monospace; font-size: 14px; }

/* ---------------------------------------------------------------- Admin orders */
.ord-page { --np-line: #DCE8F5; --np-soft: #EEF5FC; --np-muted: #4B5B70; --np-ink: #0B1F3A; }
.ord-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ord-stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--white); border: 1px solid var(--np-line); border-radius: 18px; color: var(--ink); text-decoration: none; }
.ord-stat:hover { border-color: var(--blue); }
.ord-k { font-size: 13px; font-weight: 600; color: var(--np-muted); }
.ord-v { font: 800 26px/1.15 var(--display); }
.ord-s { font-size: 13px; color: var(--np-muted); }
.ord-stat.warn { background: #FFF8EB; border-color: #F6DDAE; }
.ord-stat.bad { background: var(--bad-bg); border-color: #F3C5C5; }
.ord-stat.bad .ord-v { color: var(--bad-ink); }
.ord-stat.dark { background: #0B1F3A; border-color: #0B1F3A; color: #FFFFFF; }
.ord-stat.dark .ord-k, .ord-stat.dark .ord-s { color: #B9D3F0; }
.ord-list { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--np-line); border-radius: 18px; overflow: hidden; }
.ord-list.flush { border: 0; border-top: 1px solid var(--np-line); border-radius: 0; }
.ord-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) 120px 120px 210px 14px; align-items: center; gap: 14px; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.ord-row + .ord-row { border-top: 1px solid var(--np-line); }
.ord-row:hover { background: var(--np-soft); }
.ord-row:hover .ord-go { color: var(--blue); transform: translateX(2px); }
.ord-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--sky-100); color: #0A4C9A; display: grid; place-items: center; }
.ord-ico .mi { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ord-what { display: flex; flex-direction: column; min-width: 0; }
.ord-what strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-what span, .ord-when { font-size: 13px; color: var(--np-muted); }
.ord-what span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-when { display: flex; flex-direction: column; }
.ord-amt { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ord-st { justify-self: start; display: flex; flex-wrap: wrap; gap: 6px; }
.ord-go { font-size: 22px; color: var(--np-muted); transition: transform 0.15s ease; }
.ord-empty { display: flex; flex-direction: column; gap: 4px; padding: 28px 20px; text-align: center; }
.ord-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ord-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ord-actions form { margin: 0; }
.ord-actions .send-details > summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 2px solid var(--sky-300); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; }
.ord-danger { background: var(--white); border: 2px solid #F3C5C5; color: var(--bad-ink); }
.ord-danger:hover { background: var(--bad-bg); }
.ord-note { padding: 12px 16px; border-radius: 14px; background: var(--sky-100); color: var(--ink); }
.ord-renamed { margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-ink); }
.ord-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ord-money { margin: 0; display: grid; gap: 6px; border-top: 1px solid var(--np-line); padding-top: 12px; }
.ord-money div { display: flex; justify-content: space-between; font-size: 14px; color: var(--np-muted); }
.ord-money dd { margin: 0; font-variant-numeric: tabular-nums; }
.ord-paybar { height: 8px; border-radius: 4px; background: var(--np-soft); overflow: hidden; }
.ord-paybar span { display: block; height: 100%; background: var(--np-blue); }
.ord-paysum { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ord-paysum div { background: var(--np-soft); border-radius: 8px; padding: 10px 12px; }
.ord-paysum dt { font-size: 12px; color: var(--np-muted); }
.ord-paysum dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: var(--np-ink); font-variant-numeric: tabular-nums; }
.ord-paysum dd.due { color: var(--np-blue-ink); }
.ord-paylist { list-style: none; margin: 0; padding: 0; }
.ord-paylist li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--np-line); }
.ord-efd { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--np-soft); color: var(--np-blue-ink); }
@media (max-width: 560px) { .ord-paysum { grid-template-columns: 1fr; } }
.mp { position: relative; }
.mp summary { list-style: none; cursor: pointer; }
.mp summary::-webkit-details-marker { display: none; }
.mp-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 360px; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--np-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 30, 60, .14); text-align: left; }
.mp-head { display: grid; gap: 2px; }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mp-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--np-muted); }
.mp-grid .mp-wide { grid-column: 1 / -1; }
.mp-acts { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .mp-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; } }
.ord-money .tot { color: var(--ink); font-weight: 800; font-size: 16px; padding-top: 6px; border-top: 1px dashed var(--np-line); }
.ord-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ord-history li { position: relative; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 0 0 14px; font-size: 14px; }
.ord-history li:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 0; border-left: 2px solid var(--np-line); }
.ord-history .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sky-300); align-self: center; }
.ord-history li.check .dot, .ord-history li.package .dot { background: var(--blue); }
.ord-history li.x .dot { background: var(--bad); }
.ord-history li.clock .dot { background: #E5A93B; }
.ord-history time { font-size: 13px; color: var(--np-muted); white-space: nowrap; }
@media (max-width: 960px) {
    .ord-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ord-grid { grid-template-columns: 1fr; }
    .ord-row { grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "ico what amt" "ico st st"; row-gap: 6px; }
    .ord-ico { grid-area: ico; align-self: start; }
    .ord-what { grid-area: what; }
    .ord-amt { grid-area: amt; }
    .ord-st { grid-area: st; }
    .ord-when, .ord-go { display: none; }
}

/* Orders the customer placed and has not paid */
.pend { background: var(--white); border: 2px solid #F6DDAE; border-radius: 20px; overflow: hidden; }
.pend-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 16px 20px 12px; background: #FFF8EB; }
.pend-head h2 { font-size: 18px; margin: 0; }
.pend-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 14px 20px; border-top: 1px solid #F6E7C8; }
.pend-ico { width: 42px; height: 42px; border-radius: 12px; background: #FFF1D6; color: #8A5300; display: grid; place-items: center; }
.pend-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.pend-what { display: flex; flex-direction: column; min-width: 0; }
.pend-what strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pend-what span { font-size: 13px; color: var(--muted); }
.pend-amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pend-acts { display: flex; align-items: center; gap: 12px; }
.pend-acts form { margin: 0; }
.link-btn { background: none; border: 0; padding: 4px 2px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; cursor: pointer; }
.link-btn:hover { color: var(--bad-ink); }
@media (max-width: 720px) {
    .pend-row { grid-template-columns: 42px minmax(0, 1fr) auto; grid-template-areas: "ico what amt" "ico st st" "ico acts acts"; row-gap: 8px; }
    .pend-ico { grid-area: ico; align-self: start; }
    .pend-what { grid-area: what; }
    .pend-amt { grid-area: amt; }
    .pend-row .status { grid-area: st; }
    .pend-acts { grid-area: acts; }
}
@media (max-width: 720px) {
    .pend-what strong, .ord-what strong { white-space: normal; }
}
.ord-setup { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--sky-100); border: 2px solid var(--sky-300); color: var(--ink); }
.ord-setup .spin { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sky-300); border-top-color: var(--blue); animation: ord-spin 0.9s linear infinite; }
@keyframes ord-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ord-setup .spin { animation: none; } }

/* Admin customer page: stats open their tab; tabs carry counts */
.cust-stats > a { text-decoration: none; color: inherit; transition: border-color 0.15s ease; }
.cust-stats > a:hover { border-color: var(--blue); }
.cust-stats > a.bad { background: var(--bad-bg); border-color: #F3C5C5; }
.cust-tabs { margin-top: 4px; }
.cust-tabs a { display: inline-flex; align-items: center; gap: 8px; }
.cust-tabs .n { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--sky-100); font-size: 12px; font-weight: 700; color: var(--ink); text-align: center; }
.cust-narrow { max-width: 640px; }
a.cust-line { text-decoration: none; color: inherit; }
a.cust-line:hover strong { color: var(--blue); }
a.ord-note { display: block; text-decoration: none; font-weight: 600; }
.svc-setup { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: #EAF4FF; border: 1px solid var(--sky-300); }
.svc-setup .spin { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--sky-300); border-top-color: var(--blue); animation: ord-spin 0.9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .svc-setup .spin { animation: none; } }

/* Message credit for an app service (SMS, WhatsApp): the same card Kanisa MS uses */
.credit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.credit-card { display: flex; flex-direction: column; gap: 14px; --tone: var(--blue); --tone-soft: var(--sky-100); }
.credit-card.wa { --tone: #0B3B74; --tone-soft: #E3ECF7; }
.credit-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.credit-title { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; }
.credit-title svg { width: 22px; height: 22px; fill: none; stroke: var(--tone); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.credit-bal { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.credit-bal strong { font: 800 34px/1 var(--display); color: var(--tone); font-variant-numeric: tabular-nums; }
.credit-bal.low strong { color: #C77700; }
.credit-bal span { font-size: 14px; color: var(--muted); margin-top: 4px; }
.credit-step { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; border: 2px solid var(--sky-300); border-radius: 14px; overflow: hidden; background: var(--white); }
.credit-step:focus-within { border-color: var(--tone); }
.credit-step button { border: 0; background: var(--white); font-size: 22px; color: var(--ink); cursor: pointer; }
.credit-step button:hover { background: var(--tone-soft); }
.credit-step input { border: 0; border-left: 2px solid var(--sky-200); border-right: 2px solid var(--sky-200); min-height: 56px; text-align: center; font: 800 24px var(--body); color: var(--ink); font-variant-numeric: tabular-nums; outline: none; min-width: 0; }
.credit-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.credit-chip { min-height: 38px; padding: 0 16px; border: 2px solid var(--sky-200); border-radius: 999px; background: var(--white); font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums; }
.credit-chip.on { border-color: var(--tone); background: var(--tone-soft); }
.credit-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: var(--ground); }
.credit-sum span { font-size: 14px; color: var(--muted); }
.credit-sum strong { font: 800 24px var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.credit-pay { margin-top: auto; width: 100%; min-height: 52px; border: 0; border-radius: 14px; background: var(--tone); color: #FFFFFF; font-size: 17px; font-weight: 700; }
.credit-pay:hover { filter: brightness(1.08); }
.credit-pay:disabled { opacity: 0.55; cursor: not-allowed; }

/* Domain overview: links into its tabs */
.dom-manage { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.dom-manage a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--sky-200); border-radius: 14px; text-decoration: none; color: var(--ink); background: var(--white); }
.dom-manage a:hover { border-color: var(--blue); }
.dom-manage span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

/* Domain search: a search box of reasonable width, and Add to cart buttons */
.dom-find { max-width: 760px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; min-width: 128px; padding: 0 16px; border: 2px solid var(--blue); border-radius: 999px; background: var(--white); color: var(--blue); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; user-select: none; }
.cart-btn:hover { background: var(--sky-100); }
.cart-btn input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cart-btn:focus-within { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.cart-btn .added { display: none; }
.cart-btn:has(input:checked) { background: var(--blue); color: var(--white); }
.cart-btn:has(input:checked) .add { display: none; }
.cart-btn:has(input:checked) .added { display: inline; }

/* Domain search: the name the customer typed, said plainly above the results (green only for "available") */
.dom-hit { --ok-ink: #1E7B3E; --ok-bg: #E6F4EA; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 20px 22px; border: 1px solid var(--sky-200); border-radius: 18px; background: var(--white); }
[data-theme="dark"] .client .dom-hit { --ok-ink: #5FD08A; --ok-bg: #12301F; }
.dom-hit-ic { flex: none; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--sky-100); color: var(--muted); }
.dom-hit-ic.ok { background: var(--ok-bg); color: var(--ok-ink); }
.dom-hit-tx { flex: 1 1 240px; min-width: 0; }
.dom-hit h2, .dom-hit h3 { font-size: 22px; line-height: 1.25; margin: 0; overflow-wrap: anywhere; }
.dom-hit-name { color: var(--ok-ink); }
.dom-hit p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.dom-hit .dom-hit-in, .dom-hit.in .dom-hit-out { display: none; }
.dom-hit.in .dom-hit-in { display: inline; }
.dom-hit-btn { min-height: 48px; min-width: 150px; padding: 0 24px; border: 2px solid var(--blue); border-radius: 999px; background: var(--blue); color: #fff; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap; }
.dom-hit-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.dom-hit-btn:focus-visible { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.dom-hit-btn .added, .dom-hit.in .dom-hit-btn .add { display: none; }
.dom-hit.in .dom-hit-btn .added { display: inline; }
.dom-hit.in .dom-hit-btn { background: var(--white); color: var(--blue); }
[data-theme="dark"] .client .dom-hit-btn { color: #0F1726; }
[data-theme="dark"] .client .dom-hit.in .dom-hit-btn { color: var(--blue); }
@media (max-width: 560px) { .dom-hit { padding: 16px; gap: 14px; } .dom-hit-ic { width: 44px; height: 44px; } .dom-hit h2, .dom-hit h3 { font-size: 19px; } .dom-hit-btn { width: 100%; } }

/* Domain search with results: search and results on the left, the order beside them from the top */
.dom-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "search side" "main side"; gap: 24px; align-items: start; }
.dom-layout > .dom-find { grid-area: search; max-width: none; }
.dom-layout > #domain-form { display: contents; }
.dom-layout > #domain-form > .main { grid-area: main; min-width: 0; }
.dom-layout > #domain-form > .side { grid-area: side; position: sticky; top: 96px; }
.dom-layout:not(:has(> .dom-find)) { grid-template-areas: "main side"; }
@media (max-width: 960px) {
    .dom-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "search" "main" "side"; }
    /* Signed-out visitors have no search box in the layout: still one column, the order under the results */
    .dom-layout:not(:has(> .dom-find)) { grid-template-areas: "main" "side"; }
    .dom-layout > #domain-form > .side { position: static; }
}

/* Maintenance page (portal offline) */
.mnt-body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #EAF4FF 0%, #F5F9FF 55%, #FFFFFF 100%); color: var(--ink); font-family: var(--body); }
.mnt { max-width: 620px; margin: 0 auto; padding: 40px 16px; display: flex; flex-direction: column; align-items: center; gap: 24px; min-height: 100vh; justify-content: center; box-sizing: border-box; }
.mnt-brand .brand { font-size: 22px; text-decoration: none; }
.mnt-card { width: 100%; box-sizing: border-box; background: var(--white); border: 1px solid var(--sky-200); border-radius: 24px; padding: 36px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 18px 40px rgba(11, 31, 58, 0.08); }
.mnt-icon { width: 64px; height: 64px; border-radius: 20px; background: var(--sky-100); display: grid; place-items: center; }
.mnt-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mnt-kind { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--sky-100); color: #0A4C9A; }
.mnt-kind.unplanned { background: var(--bad-bg); color: var(--bad-ink); }
.mnt-card h1 { font-size: clamp(30px, 6vw, 40px); margin: 4px 0 0; }
.mnt-lead { font-size: 17px; margin: 0; }
.mnt-msg { margin: 0; color: var(--muted); white-space: pre-line; }
.mnt-timer { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 22px; border-radius: 18px; background: #0B1F3A; color: #FFFFFF; margin-top: 6px; box-sizing: border-box; }
.mnt-timer-label { font-size: 13px; color: #B9D3F0; }
.mnt-count { font: 800 34px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.mnt-bar { width: 100%; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.mnt-bar i { display: block; height: 100%; width: 2%; border-radius: 999px; background: linear-gradient(90deg, #4FA3FF, #8CC8FF); transition: width 1s linear; }
.mnt-bar.busy i { width: 35%; animation: mnt-slide 1.6s ease-in-out infinite; }
@keyframes mnt-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }
.mnt-timer.late .mnt-count { font-size: 26px; }
.mnt-timer.late .mnt-bar i { width: 100% !important; background: linear-gradient(90deg, #8CC8FF, #4FA3FF, #8CC8FF); background-size: 200% 100%; animation: mnt-shine 1.8s linear infinite; }
@keyframes mnt-shine { to { background-position: -200% 0; } }
.mnt-timer-at { font-size: 12px; color: #B9D3F0; }
@media (prefers-reduced-motion: reduce) { .mnt-bar i, .mnt-bar.busy i, .mnt-timer.late .mnt-bar i { animation: none; transition: none; } }
.mnt-acts { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
.mnt-note { font-size: 13px; color: var(--muted); margin: 6px 0 0; max-width: 440px; }
.mnt-staff { font-size: 13px; margin: 0; }
.mnt-staff a { color: var(--muted); }

/* Maintenance banners for customers, and the staff reminder */
.mnt-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--sky-300); background: var(--sky-100); color: #0A3D7A; font-size: 14px; margin-bottom: 14px; }
.mnt-banner.unplanned { background: var(--bad-bg); border-color: #F3C5C5; color: var(--bad-ink); }
.mnt-banner a { color: inherit; font-weight: 700; }
.mnt-banner .tag { font-weight: 800; }
.mnt-staffbar { background: #A32D2D; color: #FFFFFF; padding: 10px 16px; border-radius: 12px; margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-weight: 600; font-size: 14px; }
.mnt-staffbar a { color: #FFFFFF; }
.mnt-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; border: 2px solid var(--sky-300); }
.mnt-switch.off { border-color: #F3C5C5; background: #FFF8F8; }
.mnt-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px var(--sky-100); flex: none; }
.mnt-switch.off .mnt-dot { background: var(--bad); box-shadow: 0 0 0 6px var(--bad-bg); }
.mnt-off-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 2px solid #F3C5C5 !important; border-radius: 999px; color: var(--bad-ink) !important; text-decoration: none !important; background: var(--white); }
.mnt-danger { background: var(--white); border: 2px solid #F3C5C5; color: var(--bad-ink); }
.mnt-danger:hover { background: var(--bad-bg); }
.mnt-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 0; border-top: 1px solid var(--sky-200); }
.mnt-acts-admin { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mnt-acts-admin form { margin: 0; }

/* ---------- Support departments ---------- */
.dept-tag { display: inline-block; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--sky-100); color: var(--ink); white-space: nowrap; }
.dept-chip { min-height: 34px; padding: 0 14px; border: 1px solid var(--sky-200); border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; background: var(--white); color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; }
.dept-chip.on { background: var(--sky-100); border-color: var(--blue); color: var(--ink); }
.filter-n { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; align-items: center; justify-content: center; font-size: 11px; background: var(--sky-200); color: var(--ink); margin-left: 6px; }
.filter.on .filter-n { background: var(--blue); color: #fff; }
.dept-chip .filter-n { margin-left: 0; }
.tk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.tk-owner { position: sticky; top: 20px; }
@media (max-width: 960px) { .tk-layout { grid-template-columns: minmax(0, 1fr); } .tk-owner { position: static; order: -1; } }
.msg.note { background: var(--warn-bg); border: 1px dashed var(--warn); color: var(--ink); }
.msg-event { list-style: none; align-self: center; display: flex; align-items: flex-start; gap: 8px; max-width: min(620px, 96%); padding: 8px 14px; border-radius: 10px; border: 1px dashed var(--sky-300); background: var(--sky-100); font-size: 14px; color: var(--ink); }
.msg-event svg { width: 16px; height: 16px; flex: none; margin-top: 2px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tk-reply.noting { border-color: var(--warn); background: var(--warn-bg); }
.dept-pick { border: 0; padding: 0; margin: 0; }
.dept-pick legend { margin-bottom: 8px; }
.dept-pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.dept-pick .choice { padding: 12px 14px; }
.dept-pick .choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.dept-form summary { cursor: pointer; display: flex; gap: 10px; align-items: baseline; list-style: none; }
.dept-form summary::-webkit-details-marker { display: none; }
.dept-form summary::before { content: "▸"; color: var(--blue); }
.dept-form[open] summary::before { content: "▾"; }
.dept-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.dept-people .check { min-height: 36px; font-size: 14px; }

/* Error pages (403, 404, 419, 500, 503) */
.err-page { max-width: 560px; margin: 48px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.err-page h1 { font-size: clamp(28px, 4vw, 36px); margin: 0; }
.err-page p { margin: 0 0 8px; }
.err-code { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--sky-100); color: var(--ink); font-size: 13px; font-weight: 700; letter-spacing: .02em; }

/* One type family in the client area too (the public store keeps its display face). */
.site.client :where(*:not(code, pre, kbd, samp, svg, svg *)) { font-family: var(--body); }
.site.client { --f-head: 'Space Grotesk'; --f-ui: 'Inter'; } /* headings and figures: see the 1B block at the end */

/* Staff signed in as a customer: the bar stays on screen at the bottom. */
.imp-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #FDF1D7; color: #6B4200; box-shadow: 0 -4px 20px rgba(11, 31, 58, 0.18); }
.imp-banner .wrap { padding-top: 10px; padding-bottom: 10px; }
.imp-back { min-height: 40px; padding: 0 14px; border: 1px solid currentColor; border-radius: 10px; background: #FFFFFF; color: #6B4200; font: 700 14px var(--body); cursor: pointer; }
.imp-back:hover { background: #6B4200; color: #FFFFFF; }
body.impersonating { padding-bottom: 72px; }

/* Announcements bell (client area): rounded like the dark-mode button, with a count. */
.news-dd { flex: none; }
.news-bell.dd-toggle { position: relative; width: 42px; height: 42px; padding: 0; justify-content: center; border: 1px solid var(--np-line); border-radius: 12px; background: var(--white); color: var(--np-ink); }
.news-bell.dd-toggle:hover, .news-dd.open .news-bell.dd-toggle { border-color: var(--np-ink); background: var(--white); }
.news-bell svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #C8322B; color: #FFFFFF; border: 2px solid var(--white); font: 800 11px/16px var(--body); text-align: center; }
.news-menu { width: min(340px, calc(100vw - 32px)); padding: 6px; }
.news-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 8px 10px 6px; }
.news-item { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px 9px 18px; border-radius: 10px; color: var(--np-text); text-decoration: none; position: relative; }
.news-item:hover { background: var(--np-soft); }
.news-item.is-new::before { content: ""; position: absolute; left: 6px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--np-blue); }
.news-title { font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--np-ink); }
.news-meta { font-size: 12px; color: var(--np-muted); }
.news-meta b { color: var(--np-blue-ink); }
/* In the phone top bar the menu sits inside centred, no-wrap items: keep it left-aligned and wrapping. */
.news-dd .news-menu, .news-dd .news-menu * { text-align: left; white-space: normal; }
.news-dd .dd-menu a.news-item { flex-direction: column; align-items: flex-start; justify-content: flex-start; flex-wrap: nowrap; }
.news-dd .news-title { overflow-wrap: anywhere; }
.news-dd .news-all { display: flex; justify-content: space-between; align-items: center; }
.news-all { margin-top: 4px; padding: 10px; border-top: 1px solid var(--np-line); font-weight: 700; font-size: 14px; color: var(--np-blue-ink); text-decoration: none; }
/* Phones: the list hangs from the bar, right-aligned to the screen, not to the bell. */
.topbar-narrow .news-dd { position: static; }
.topbar-narrow .news-bell.dd-toggle { width: 44px; height: 44px; border-color: var(--sky-200); }
.topbar-narrow .news-menu { left: auto; right: 16px; top: calc(100% - 4px); }

/* Phones: bell, dark mode and the account sit in the bar as round-cornered buttons (like the admin). */
.topbar-narrow .theme-toggle, .topbar-narrow .news-bell.dd-toggle { width: 40px; height: 40px; border-color: var(--sky-200); }
.topbar-narrow .account-dd { position: static; }
.topbar-narrow .account-dd .avatar-btn { padding: 0; }
.topbar-narrow .account-dd .avatar { width: 38px; height: 38px; font-size: 13px; box-shadow: none; }
.topbar-narrow .account-menu { left: auto; right: 16px; top: calc(100% - 4px); width: min(320px, calc(100vw - 32px)); }
.topbar-narrow .guest-menu > summary { width: 42px; height: 42px; }
@media (max-width: 380px) {
  .client .topbar-narrow { gap: 5px; }
  .topbar-narrow .theme-toggle, .topbar-narrow .news-bell.dd-toggle { width: 36px; height: 36px; border-radius: 10px; }
  .topbar-narrow .account-dd .avatar { width: 34px; height: 34px; font-size: 12px; }
  .topbar-narrow .guest-menu > summary { width: 38px; height: 38px; }
  .client .topbar .brand img { max-width: 96px; }
}

/* Paying offline (bank, Lipa Namba, cash, cheque) */
.ipay .ipay-offline-link, .ipay .ipay-offline-link:hover { margin-top: 10px; color: #FFFFFF; font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.5); }
.ipay-offline-state { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); font-size: 14px; }
.offline-pay { margin-top: 22px; }
.offline-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.offline-method { padding: 14px 16px; border-radius: 14px; background: var(--np-soft); border: 1px solid var(--np-line); }
.offline-method strong { color: var(--np-ink); }
.offline-method p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; color: var(--np-text); overflow-wrap: anywhere; }
.offline-status { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; }
.offline-status.bad { background: var(--bad-bg); color: var(--bad-ink); }
.offline-form-box > summary { cursor: pointer; width: fit-content; font-weight: 700; color: var(--np-blue-ink); }
.offline-form-box > summary:focus-visible { outline: 2px solid var(--np-blue); outline-offset: 3px; border-radius: 4px; }
.offline-pay .ref { font-family: ui-monospace, Menlo, monospace; }

/* Choosing how to pay on the order pages (partials.pay). */
.pay-choice { border: 0; margin: 0; min-width: 0; }
.pay-choice legend { padding: 0; float: left; width: 100%; margin-bottom: 14px; }
.pay-choice legend + * { clear: both; }
.pay-option { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--sky-200); border-radius: 16px; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease; }
.pay-option:hover { border-color: var(--sky); }
.pay-option input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.pay-option:has(input:checked) { border-color: var(--blue); background: var(--sky-100); }
.pay-option:has(input:focus-visible) { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.pay-option-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pay-option-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; }


/* The order button in the bar (partials.order-cart): the bell's shape, a blue count. */
.cart-count { background: var(--np-blue); }
.cart-menu { width: min(360px, calc(100vw - 32px)); }
.cart-item { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; }
.cart-item + .cart-item { border-top: 1px solid var(--np-line); border-radius: 0; }
.cart-main { display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.cart-main:hover .news-title { text-decoration: underline; }
.cart-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-actions form { margin: 0; }
.cart-remove { border: 0; background: none; padding: 6px 4px; font: 600 13px var(--body); color: var(--np-muted); cursor: pointer; text-decoration: underline; }
.cart-remove:hover { color: var(--bad-ink); }
.cart-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 4px 10px 10px; }
.cart-empty p { margin: 0; }
.cart-note { margin: 0; padding: 8px 10px 6px; border-top: 1px solid var(--np-line); }
.topbar-narrow .cart-menu { left: auto; right: 16px; top: calc(100% - 4px); }
/* The bar's menu links are rows; the order list needs its own layout and real buttons. */
.topbar .cart-menu a.cart-main { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 2px; min-height: 0; padding: 0; background: none; }
.topbar .cart-menu a.cart-main:hover { background: none; }
.topbar .cart-menu a.btn { display: inline-flex; min-height: 36px; padding: 0 14px; gap: 6px; border-radius: 999px; background: var(--np-blue); color: #FFFFFF; font-weight: 700; font-size: 14px; }
.topbar .cart-menu a.btn:hover { background: var(--np-blue-ink); color: #FFFFFF; }
/* Narrow phones: logo and five bar buttons on one row. */
@media (max-width: 420px) {
  .client .topbar .brand { font-size: 17px; }
  .client .topbar-narrow { gap: 4px; }
  .client .topbar-narrow .theme-toggle, .client .topbar-narrow .news-bell.dd-toggle { width: 34px; height: 34px; border-radius: 10px; }
  .client .topbar-narrow .theme-toggle svg, .client .topbar-narrow .news-bell svg { width: 17px; height: 17px; }
  .client .topbar-narrow .account-dd .avatar { width: 32px; height: 32px; font-size: 12px; }
  .client .topbar-narrow .guest-menu > summary { width: 36px; height: 36px; }
  .client .topbar-narrow .news-count { top: -6px; right: -6px; min-width: 18px; height: 18px; font-size: 10px; line-height: 14px; }
}

/* Cloud servers (services/partials/server*): the overview, snapshots, backups, reinstall. */
.vps { min-width: 0; }
.vps svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vps-mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.vps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 4px 0 18px; }
.vps-sub { color: var(--muted); font-size: 15px; }
.vps-rename { display: inline-block; margin-left: 8px; font-size: 14px; } .vps-rename summary { cursor: pointer; color: var(--blue-ink, #0067D6); font-weight: 600; display: inline; }
.vps-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.vps-actions form { margin: 0; }
.vps-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--sky-100); color: var(--ink); }
.vps-pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.vps-pill.on { background: #E3F4E8; color: #17603A; }
.vps-pill.on::before { background: #1F8A52; }
.vps-pill.off { background: #EEF1F5; color: #475569; }
.vps-pill.busy { background: var(--warn-bg); color: var(--warn-ink); }
.vps-pill.bad { background: var(--bad-bg); color: var(--bad-ink); }
.vps-sandbox { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.vps-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.vps-card { background: var(--white); border: 1px solid var(--sky-200); border-radius: 20px; padding: 24px; min-width: 0; }
.vps-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 18px; font-family: var(--body); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.vps-label small { font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--muted); font-weight: 600; }
.vps-ip-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--sky-100); }
.vps-ip { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; overflow-wrap: anywhere; }
.vps-kv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; margin: 0; }
.vps-kv dt, .vps-k { font-size: 13px; color: var(--muted); margin-bottom: 3px; }
.vps-kv dd { margin: 0; font-size: 15px; color: var(--ink); overflow-wrap: anywhere; }
.vps-rdns { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sky-100); font-size: 13px; }
.vps-rdns-row { overflow-wrap: anywhere; margin-bottom: 3px; }
.vps-rdns-row em { font-style: normal; color: var(--muted); }
.vps-rdns-edit { margin-top: 10px; }
.vps-rdns-edit > summary { list-style: none; display: inline-flex; cursor: pointer; }
.vps-rdns-edit > summary::-webkit-details-marker { display: none; }
.vps-rdns-edit[open] > summary { display: none; }
.vps-dns-ok { font-weight: 700; color: #17603A; }
.vps-dns-rec { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; margin-top: 6px; background: var(--ground); border-radius: 10px; font-size: 13px; }
.vps-dns-rec span { overflow-wrap: anywhere; }
.vps-dns-rec b { color: var(--muted); }
.vps-term { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 18px; margin-bottom: 14px; background: #0B1F3A; color: #E0F2FE; border-radius: 14px; font-size: 15px; }
.vps-term > span { min-width: 0; overflow-wrap: anywhere; }
.vps-term b { color: #38BDF8; font-weight: 500; margin-right: 10px; user-select: none; }
.vps-term .btn { background: #12345E; border-color: #12345E; color: #FFFFFF; flex: none; }
.vps-term .btn:hover { background: #1B4A80; color: #FFFFFF; }
.vps-power { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vps-power form { margin: 0; }
.vps-power .btn { width: 100%; flex-direction: column; gap: 8px; height: auto; min-height: 84px; padding: 16px 8px; border-radius: 14px; }
.vps .btn:disabled { opacity: .45; cursor: not-allowed; }
.vps-row { display: flex; align-items: center; gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; }
.vps-row + .vps-row { border-top: 1px solid var(--sky-100); }
.vps-row:hover .vps-row-t { text-decoration: underline; }
.vps-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sky-100); color: var(--blue); flex: none; }
.vps-ico.navy { background: #0B1F3A; color: #7DD3FC; }
.vps-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vps-row-t { font-weight: 800; font-size: 16px; }
.vps-row-s { color: var(--muted); font-size: 14px; }
.vps-chev { color: var(--muted); font-size: 22px; }
.vps-rec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.vps-rec > div + div { border-left: 1px solid var(--sky-100); padding-left: 24px; }
.vps-rec h3, .vps-danger h3, .vps-rescue h3 { font-size: 17px; margin: 0 0 6px; }
.vps-rec p, .vps-danger p { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.vps-danger { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-color: #F4C7C1; }
.vps-danger p { margin: 0; }
.vps-danger .btn, .vps-del { color: var(--bad-ink); }
.vps-danger .btn { border-color: #E9B4AE; }
.vps-danger-form { border-color: #F4C7C1; }
.vps-banner { margin-bottom: 20px; font-size: 15px; }
.vps-banner strong { display: block; font-size: 17px; margin-bottom: 4px; color: var(--ink); }
.vps-rescue { margin-bottom: 20px; background: var(--warn-bg); border-color: #F5D68A; color: var(--warn-ink); }
.vps-rescue-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.vps-rescue-head p { margin: 0; font-size: 14px; }
.vps-rescue .vps-term b { color: #FBBF24; }
.vps-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; }
.vps-steps code { padding: 2px 6px; border-radius: 6px; background: var(--white); color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.vps-secret { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; padding: 16px 18px; border-radius: 16px; background: var(--sky-100); border: 1px solid var(--sky-200); }
.vps-secret > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.vps-secret .vps-term { margin: 0; }
.vps-billing-title { font-size: 20px; margin: 8px 0 12px; }
.vps-snap-new { display: flex; gap: 10px; margin-top: 16px; }
.vps-snap-new .input { flex: 1; min-width: 0; }
.vps-copy { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.vps-copy + .vps-copy { border-top: 1px solid var(--sky-100); }
.vps-copy:first-child { padding-top: 0; }
.vps-copy:last-child { padding-bottom: 0; }
.vps-copy-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.vps-copy-actions form { margin: 0; }
.vps-os { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.vps-os legend { margin-bottom: 8px; }
[data-theme="dark"] .client .vps-pill.on { background: #10301F; color: #7EE2A8; }
[data-theme="dark"] .client .vps-pill.off { background: var(--sky-100); color: var(--muted); }
[data-theme="dark"] .client .vps-danger, [data-theme="dark"] .client .vps-danger-form { border-color: #5A2A26; }
[data-theme="dark"] .client .vps-rescue { border-color: #5A4515; }
@media (max-width: 767px) {
  .vps-grid, .vps-rec { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
  .vps-card { padding: 18px; border-radius: 16px; }
  .vps-rec > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--sky-100); padding-top: 16px; }
  .vps-ip { font-size: 24px; }
}
@media (max-width: 480px) {
  .vps-power { grid-template-columns: minmax(0, 1fr); }
  .vps-power .btn { flex-direction: row; justify-content: flex-start; min-height: 48px; padding: 12px 14px; }
  .vps-term { flex-direction: column; align-items: stretch; }
  .vps-snap-new { flex-direction: column; }
  .vps-copy { flex-wrap: wrap; }
  .vps-copy-actions { width: 100%; padding-left: 58px; }
  .vps-dns-rec { grid-template-columns: minmax(0, 1fr) auto; }
  .vps-dns-rec b { grid-column: 1 / -1; margin-bottom: -6px; }
}
/* Mid-size screens: the bar keeps one row with the order button; the balance keeps its amount, not the word. */
@media (min-width: 1100px) and (max-width: 1399px) {
  .client .client-tools .bal-k { display: none; }
  .client .client-tools { gap: 8px; }
}
/* The bar is one row, always: the menu never drops under the logo. The balance sits in the bar only
   where there is room for it (wide screens); everywhere it is the first row of the account menu. */
@media (min-width: 1100px) {
  .client .topbar .wrap { flex-wrap: nowrap; }
  .client .topbar .nav { flex-wrap: nowrap; }
  .client .topbar .nav a, .client .topbar .dd-toggle { white-space: nowrap; }
}
@media (max-width: 1279px) {
  .client .client-tools .bal-chip { display: none; }
}
@media (min-width: 1100px) and (max-width: 1279px) {
  .client .topbar .wrap { gap: 10px 16px; }
  .client .client-tools { margin-left: 6px; padding-left: 10px; gap: 6px; }
  .client .topbar .nav a, .client .topbar .dd-toggle { padding-left: 8px; padding-right: 8px; }
}
.menu-bal { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 4px 6px; padding: 10px 12px; border-radius: 10px; background: #E3F1FF; color: #0A4C9A; font-size: 13px; text-decoration: none; }
.account-menu a.menu-bal { padding: 10px 12px; }
.menu-bal strong { font-size: 15px; font-variant-numeric: tabular-nums; color: #0B1F3A; }
.menu-bal .menu-bal-add { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #0A4C9A; color: #FFFFFF; font-size: 12px; font-weight: 700; white-space: nowrap; }
.menu-bal:hover { background: #D3E8FF; }
[data-theme="dark"] .menu-bal { background: #12305A; color: #9CCBFF; }
[data-theme="dark"] .menu-bal strong { color: #FFFFFF; }

/* Choosing a server's system or app (partials.image-picker). */
.imgpick { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.imgpick-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.imgpick-tabs { display: flex; gap: 22px; }
.imgpick-tabs button { border: 0; background: none; padding: 6px 0; font: 700 15px var(--body); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; }
.imgpick-tabs button[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); }
.imgpick-search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--sky-200); border-radius: 12px; background: var(--white); color: var(--muted); }
.imgpick-search svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.imgpick-search input { border: 0; outline: 0; background: none; font: 15px var(--body); color: var(--ink); width: 160px; }
.imgpick-search:focus-within { border-color: var(--blue); }
.imgpick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.imgpick-grid[hidden] { display: none; }
.imgpick-card { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--sky-200); border-radius: 16px; background: var(--white); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.imgpick-card[hidden] { display: none; }
.imgpick-card:hover { border-color: var(--sky); }
.imgpick-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.imgpick-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-100); }
.imgpick-card:has(input:focus-visible) { outline: 3px solid var(--sky-300); outline-offset: 2px; }
.imgpick-top { display: flex; align-items: center; gap: 14px; padding: 18px 16px; }
.imgpick-logo { width: 40px; height: 40px; flex: none; background: var(--c); -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.imgpick-logo.is-letter { -webkit-mask: none; mask: none; border-radius: 12px; display: grid; place-items: center; color: #FFFFFF; font: 800 20px var(--display); }
.imgpick-name { font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.2; }
.imgpick-tick { position: absolute; top: -9px; left: -9px; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); display: none; }
.imgpick-tick::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.imgpick-card:has(input:checked) .imgpick-tick { display: block; }
.imgpick-ver { display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 12px; border-top: 1px solid var(--sky-100); font-weight: 600; font-size: 16px; color: var(--ink); }
.imgpick-ver select { width: 100%; min-height: 44px; border: 0; background: transparent; font: 600 16px var(--body); color: var(--ink); text-align: center; text-align-last: center; cursor: pointer; }
.imgpick-ver:has(.imgpick-need) { flex-direction: column; gap: 0; }
.imgpick-need { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.imgpick-none { grid-column: 1 / -1; margin: 0; }
.imgpick-note { margin: 0; }
[data-theme="dark"] .client .imgpick-logo:not(.is-letter) { background: color-mix(in srgb, var(--c) 70%, #FFFFFF); }
@media (max-width: 480px) {
  .imgpick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .imgpick-top { padding: 14px 12px; gap: 10px; }
  .imgpick-logo { width: 30px; height: 30px; }
  .imgpick-name { font-size: 15px; }
  .imgpick-search { width: 100%; }
  .imgpick-search input { width: 100%; }
}

/* Dashboard: the account card beside the main column on wide screens only. */
.client .card.idcard.dash-id { display: none; }
@media (min-width: 1000px) {
  .dash.has-id { grid-template-columns: 300px minmax(0, 1fr); }
  .client .dash.has-id .card.idcard.dash-id { display: flex; }
}

/* Dashboard: recent tickets and announcements side by side on wide screens. */
.dash-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 1200px) { .dash-pair:not(.is-single) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ticket-row .status { flex: none; }
.ticket-row .grow strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vps-kv-wide { grid-column: 1 / -1; }
.vps-host { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Support PIN: in the account menu and on the profile card. */
.menu-pin { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 4px 6px; padding: 10px 12px; border-radius: 10px; background: var(--sky-100); font-size: 13px; color: var(--muted); }
.menu-pin strong { font: 800 16px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--ink); }
.pin-val { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; }
.pin-new { display: flex; flex-direction: column; gap: 2px; width: 100%; padding-top: 10px; border-top: 1px solid var(--np-line); margin: 0; }
.pin-new .linkbtn { align-self: flex-start; }

/* Chat: welcome bubble, sound switch, typing dots, unread dot. */
.ai-bubble { position: absolute; right: 0; bottom: calc(100% + 12px); display: flex; align-items: flex-start; gap: 4px; width: max-content; max-width: min(300px, calc(100vw - 32px)); padding: 4px 4px 4px 0; border-radius: 16px 16px 4px 16px; background: #FFFFFF; border: 1px solid #DCE6F0; box-shadow: 0 16px 36px rgba(11, 31, 58, 0.18); animation: ai-pop .35s cubic-bezier(.2, .9, .3, 1.3); }
.ai-bubble[hidden] { display: none; }
.ai-bubble-text { border: 0; background: none; padding: 10px 6px 10px 14px; text-align: left; font: 600 14.5px/1.4 var(--f-ui), sans-serif; color: #0B1F3A; cursor: pointer; }
.ai-bubble-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: #6B7686; font-size: 18px; line-height: 1; cursor: pointer; }
.ai-bubble-x:hover { background: #F1F5F9; color: #0B1F3A; }
.ai.bubbling .ai-fab { animation: ai-nudge 1.2s ease 2; }
@keyframes ai-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ai-nudge { 0%, 100% { transform: none; } 30% { transform: translateY(-4px); } 60% { transform: translateY(0); } }
.ai-sound { width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.1); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.ai-sound:hover { background: rgba(255, 255, 255, 0.2); }
.ai-sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-sound .off, .ai.muted .ai-sound .on { display: none; }
.ai.muted .ai-sound .off { display: block; }
.ai-msg.typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 14px; letter-spacing: 0; }
.ai-msg.typing span:not(.sr-only) { width: 7px; height: 7px; border-radius: 50%; background: #8391A4; animation: ai-dot 1.1s infinite ease-in-out; }
.ai-msg.typing span:nth-child(2) { animation-delay: .15s; }
.ai-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai-fab { position: relative; }
.ai-unread { position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #2FD1B5; border: 2px solid #0B1F3A; }
.ai-unread[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .ai-bubble, .ai.bubbling .ai-fab, .ai-msg.typing span { animation: none; } }

/* Chat window: live chat with our team. */
.ai-sys { align-self: center; max-width: 90%; text-align: center; font-size: 12px; color: #6B7686; background: #EEF2F7; padding: 4px 10px; border-radius: 999px; }
.ai-who { font-size: 11.5px; color: #6B7686; margin: 2px 4px -6px; }
.ai-msg.pending { opacity: .6; }
.ai-msg.failed { opacity: 1; background: #FEE4E2; border-color: #F4C7C1; color: #912018; }
.ai-handoff { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 12px 8px; padding: 10px 12px; border: 1px dashed #93C5FD; border-radius: 14px; background: #F0F9FF; font-size: 13px; font-weight: 600; color: #0B1F3A; }
.ai-handoff[hidden], .ai-start[hidden], .ai-rate[hidden] { display: none; }
.ai-start { display: flex; flex-direction: column; gap: 8px; margin: 0 12px 10px; padding: 12px; border: 1px solid #E5E7EB; border-radius: 14px; background: #FFFFFF; font-size: 13.5px; color: #0B1F3A; }
.ai-start input, .ai-start textarea { width: 100%; box-sizing: border-box; border: 1px solid #DCE6F0; border-radius: 10px; padding: 9px 11px; font: 14.5px var(--f-ui), sans-serif; color: #0B1220; resize: vertical; }
.ai-start input:focus, .ai-start textarea:focus { outline: none; border-color: #0A84FF; box-shadow: 0 0 0 3px #E3F1FF; }
.ai-start-note { color: #6B7686; font-size: 12.5px; }
.ai-start-err { color: #B42318; font-size: 12.5px; font-weight: 600; }
.ai-row { display: flex; gap: 8px; justify-content: center; }
.ai-row[hidden] { display: none; }
.ai .b-blue, .ai .b-line { border: 0; border-radius: 999px; padding: 9px 14px; font: 700 13px var(--f-ui), sans-serif; cursor: pointer; white-space: nowrap; }
.ai .b-blue { background: #0A84FF; color: #FFFFFF; }
.ai .b-blue:hover { background: #0067D6; }
.ai .b-line { background: #FFFFFF; color: #0B1F3A; border: 1px solid #CFE3FF; }
.ai-start .b-blue { align-self: flex-start; }
.ai-rate { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 0 12px 12px; padding: 14px; border-radius: 14px; background: #F6F9FC; border: 1px solid #E5E7EB; font-size: 13.5px; color: #0B1F3A; }
.ai-rate .ai-row button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #DCE6F0; background: #FFFFFF; font-size: 20px; cursor: pointer; }
.ai-rate .ai-row button:hover { border-color: #0A84FF; }
.ai.is-live .ai-avatar { background: linear-gradient(135deg, #0A84FF, #0067D6); }
.ai-form[hidden], .ai-chips[hidden] { display: none; }
/* "Jacob joined the chat": a card with the agent's initials. */
.ai-join { align-self: center; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px; background: #E0F2FE; color: #0B2545; font-size: 13.5px; font-weight: 700; animation: ai-pop .35s ease; }
.ai-join-av { position: relative; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #0A84FF, #0067D6); color: #FFFFFF; font-size: 11.5px; font-weight: 800; }
.ai-join-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: #1F8A52; border: 2px solid #E0F2FE; }
@media (prefers-reduced-motion: reduce) { .ai-join { animation: none; } }

/* Top-up page: the navy card for visitors (what it costs, how it works). */
.topup-intro { display: flex; flex-direction: column; gap: 14px; }
.site .topup-intro h2 { margin: 0; font-size: 28px; color: #FFFFFF; }
.topup-lead { margin: 0; color: var(--sky-100, #E0F2FE); font-size: 16px; }
.topup-tiers { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.12); }
.topup-k { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #7DD3FC; }
.topup-tiers ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.topup-tiers li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: #E0F2FE; }
.topup-tiers li strong { color: #FFFFFF; }
.topup-note { display: block; margin-top: 8px; font-size: 12.5px; color: #A9BCD6; }
.topup-steps { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.topup-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #E0F2FE; }
.topup-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #2FD1B5; color: #0B1F3A; font-size: 13px; }

/* Number columns: the heading lines up with its figures (.table th is left-aligned by default). */
.table th.right { text-align: right; }
.table th.center, .table td.center { text-align: center; }

/* "Pay with" inside Buy credit and Add funds */
.pay-pills { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; min-width: 0; }
.pay-pills legend { padding: 0; margin-bottom: 8px; }
.pay-pills-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-pills-row label { position: relative; cursor: pointer; }
.pay-pills-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-pills-row span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--sky-200); border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--white, #fff); }
.pay-pills-row input:checked + span { border-color: var(--ink); background: var(--sky-100); }
.pay-pills-row input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.fund-form .pay-pills .label, .fund-form .pay-pills [data-pay-hint] { color: inherit; }

/* A domain that is free with the hosting, in an order summary */
.sum .free-line dt, .sum .free-line dd { color: var(--blue); font-weight: 700; }


/* ---- Type and cards from the 1B tracker (Inter for text, Space Grotesk for headings and figures), in our colours ---- */
:root { --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-head: 'Space Grotesk'; --f-ui: Inter; --card-line: #DCE7F3; }
.site.client { --display: 'Space Grotesk', 'Inter', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-head: 'Space Grotesk'; --f-ui: Inter; }
h1, h2, h3, .display { font-weight: 700; letter-spacing: -0.02em; }
/* Headings and figures in the display face, also where the client area sets one face for everything. */
.site :where(h1, h2, h3, .display, .big, .amount, .amount-xl, .balance, .price, .stat-v, .num, .priceline strong, .tld-strip strong) { font-family: var(--display); }
.site.client :where(h1, h2, h3, .display, .big, .amount, .amount-xl, .balance, .price, .stat-v, .num) { font-family: var(--display); }
.num, .amount, .amount-xl, .balance, .big, .price, td.right { font-variant-numeric: tabular-nums; }
/* Cards: white, 20px corners, a hairline edge. */
.card { border: 1px solid var(--card-line); border-radius: 20px; }
.card-warn { border-color: var(--warn); }
.card-bad { border-color: var(--bad); }
.card-navy { border-color: var(--ink); }
/* Buttons: rounded rectangles, a little lighter. Small ones stay tappable. */
.btn { border-radius: 16px; font-weight: 600; }
.btn-sm { border-radius: 14px; }
.badge { font-weight: 600; }
.input, select.input { border-radius: 12px; }
[data-theme="dark"] .card { border-color: #223049; }

/* The navy "hero" card: the one figure that matters most on a page (balance due on the dashboard). */
.hero-card { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; border-radius: 24px; background: #0B1F3A; color: #EAF4FF; }
.hero-card .hc-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #A9C4E4; }
.hero-card .hc-big { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-card .hc-big small { font-size: 15px; font-weight: 500; color: #A9C4E4; letter-spacing: 0; }
.hero-card .hc-note { font-size: 13px; font-weight: 600; color: #7DD3FC; }
.hero-card .btn { align-self: flex-start; background: #38BDF8; border-color: #38BDF8; color: #0B1F3A; }
.hero-card .btn:hover { background: #7DD3FC; border-color: #7DD3FC; }
@media (max-width: 640px) { .hero-card .btn { align-self: stretch; } }
[data-theme="dark"] .hero-card { background: #0F2440; border: 1px solid #223049; }

/* Yearly summary: the year tabs, and each service heading a block of payments */
.ys-years { margin: 0 0 14px; flex-wrap: wrap; }
.table tr.ys-group td { background: var(--sky-100, #E0F2FE); }
[data-theme="dark"] .table tr.ys-group td { background: #12233D; }
.seg > a { display: block; padding: 8px 16px; border-radius: 9px; font-weight: 600; color: var(--np-muted); text-decoration: none; }
.seg > a:hover { color: var(--np-ink); background: var(--sky-100, #E0F2FE); }
.seg > a.on { background: var(--np-ink); color: var(--white); }

/* More time to pay (partials.more-time-banner) */
.mt-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 14px 0; padding: 12px 16px; border-radius: 12px; background: var(--sky-100, #E0F2FE); color: var(--ink, #0B2545); font-size: 14px; }

/* Plans: Monthly / Yearly switch (page.blade.php). Without JS the yearly prices show. */
.cycle-switch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.cycle-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--np-line); border-radius: 999px; background: var(--white); }
.cycle-switch button { border: 0; border-radius: 999px; padding: 8px 18px; min-height: 40px; font: inherit; font-weight: 700; font-size: 15px; color: var(--np-ink); background: transparent; cursor: pointer; }
.cycle-switch button[aria-checked="true"] { background: var(--np-ink); color: #fff; }
.cycle-save { font-size: 13px; font-weight: 700; color: var(--np-blue-ink); background: var(--np-soft); border-radius: 999px; padding: 4px 12px; }
.cycle-note { color: var(--blue); font-weight: 700; }
.cycle-was { margin: 0; color: var(--np-muted); }
.cycle-was s { color: var(--np-muted); }
[data-cycles="yearly"] [data-show="monthly"], [data-cycles="monthly"] [data-show="yearly"] { display: none; }

/* Page links outside the admin (partials.pagination); the admin has its own in admin.css. */
.dt-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; font-size: 13px; }
.dt-pages { display: flex; align-items: center; gap: 8px; }
.dt-pages .btn { min-height: 36px; padding: 0 12px; font-size: 13px; }
.dt-pages [aria-disabled="true"] { opacity: 0.45; cursor: default; }
.dt-page-n { color: var(--np-muted); }

/* Built-in public pages (resources/views/site): /tz-domains, /website-design, /contact, /status. */
.site-search { display: flex; flex-wrap: wrap; gap: 10px; }
.site-search .input { flex: 1 1 220px; min-width: 0; }
.site-verdict { margin: 0; padding: 12px 14px; border-radius: 12px; font-weight: 600; font-size: 15px; background: var(--sky-100, #e6f1fb); color: #0c447c; }
.site-verdict.bad { background: var(--bad-bg); color: var(--bad-ink); }
.site-verdict.warn { background: #faeeda; color: #633806; }
.site-names { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; font-size: 14px; max-height: 320px; overflow: auto; }
.site-names li { overflow-wrap: anywhere; }
.site-faq { display: flex; flex-direction: column; gap: 8px; }
.site-faq details { background: #FFFFFF; border: 1px solid var(--np-line); border-radius: 14px; padding: 0 18px; }
.site-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 16px; }
.site-faq p { margin: 0 0 16px; color: var(--np-muted); font-size: 15px; line-height: 1.65; }
.site-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.site-stats div { background: #e6f1fb; border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.site-stats strong { font-size: 24px; font-weight: 800; color: #042c53; letter-spacing: -0.02em; }
.site-stats span { font-size: 14px; color: #185fa5; font-weight: 600; }
.site-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.site-steps li { display: flex; gap: 14px; background: #FFFFFF; border: 1px solid var(--np-line); border-radius: 18px; padding: 18px; }
.site-steps li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #042c53; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.site-steps p { margin: 4px 0 0; color: var(--np-muted); font-size: 15px; line-height: 1.6; }
.site-contact { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .site-contact { grid-template-columns: minmax(0, 1fr); } }
.site-reach { display: flex; flex-direction: column; gap: 10px; }
.site-reach li { display: flex; flex-direction: column; gap: 1px; }
.site-reach li > span:first-child { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--np-muted); }
.site-status-top { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-radius: 16px; background: #e6f1fb; color: #042c53; }
.site-status-top strong { font-size: 20px; }
.site-status-top span { font-size: 14px; color: #185fa5; }
.site-status-top.bad { background: var(--bad-bg); color: var(--bad-ink); }
.site-status-top.bad span { color: var(--bad-ink); }
.badge.site-up { background: #e3f4e8; color: #17603a; }
.badge.site-down { background: var(--bad-bg); color: var(--bad-ink); }
[data-theme="dark"] .site-faq details, [data-theme="dark"] .site-steps li { background: transparent; }
.badge.site-open { background: #e6f1fb; color: #0c447c; }

/* Title Case: headings, buttons, menus, tabs, table headings and field labels start each word with a
   capital. Sentences (notes, tick-box labels) and customer data (.as-is: domains, emails, names like cPanel) do not. */
h1, h2, h3, h4, .btn, button, th, label, summary, legend, nav a, .utabs a { text-transform: capitalize; }
label.check, label.www-pre, label.as-is, .as-is, .as-is *, .crumbs a, .crumbs span, label small, label .tiny, label .small, label .muted,
h1 small, h2 small, h3 small, h2 .muted, h3 .muted, button small, .btn small, input, textarea, select, code, pre, kbd, p, li, td { text-transform: none; }

/* A phone number with its country code beside it (sign-up, checkout, setup). */
.phone-row { display: flex; gap: 8px; }
.phone-row .phone-code { flex: 0 0 42%; max-width: 190px; padding: 0 10px; text-overflow: ellipsis; }
.phone-row .input:not(.phone-code) { flex: 1 1 0; min-width: 0; }

/* Overdue invoice: what happens if it stays unpaid (System › Automation). */
.overdue-notice { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: #FFF6E5; border-left: 4px solid #E5A00D; color: #6B4A06; font-size: 14px; line-height: 1.55; }
.overdue-notice h2 { font-size: 16px; margin: 0 0 6px; color: #4A3304; }
.overdue-notice p { margin: 8px 0 0; }
[data-theme="dark"] .client .overdue-notice { background: #2A2010; color: #F5C46B; }
[data-theme="dark"] .client .overdue-notice h2 { color: #FFD98A; }

/* Sign-in: clients moved from the old portal reset their password first. */
.login-notice { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 14px; background: var(--sky-100); border-left: 4px solid var(--blue); color: var(--ink); font-size: 14px; line-height: 1.5; }
.login-notice a { align-self: flex-start; margin-top: 2px; }

/* The landing site's home (netpoa.com): the promise beside an example of a client's account. */
.lp-hero { background: linear-gradient(160deg, #F4FAFF, #E1F0FC); border-bottom: 1px solid var(--np-line, #DCE7F3); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.03em; margin: 14px 0 18px; text-wrap: balance; text-transform: none; }
.lp-hero h1 em { font-style: normal; color: var(--blue); }
.lp-hero .np-lead { max-width: 54ch; }
.lp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.lp-find { margin-top: 26px; display: flex; gap: 8px; background: #FFFFFF; border: 1px solid var(--np-line, #DCE7F3); border-radius: 18px; padding: 8px; max-width: 520px; }
.lp-find input { flex: 1 1 0; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 16px var(--body); padding: 0 12px; }
.lp-find input:focus { outline: none; }
.lp-find:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(56, 189, 248, .3); }
.lp-find-hint { font-size: 13.5px; color: var(--np-muted, #475569); margin: 8px 0 0; }
.lp-acct { background: #FFFFFF; border: 1px solid var(--np-line, #DCE7F3); border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(11, 31, 58, .12); }
.lp-acct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--np-line, #DCE7F3); }
.lp-acct-head strong { font: 600 16px var(--display); color: var(--ink); }
.lp-acct-head span { font-size: 12.5px; color: var(--np-muted, #475569); }
.lp-acct ul { list-style: none; margin: 0; padding: 0; }
.lp-acct li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--np-line, #DCE7F3); }
.lp-acct li:last-child { border-bottom: 0; }
.lp-acct b { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.lp-acct small { grid-column: 1; color: var(--np-muted, #475569); font-size: 13px; }
.lp-pill { grid-row: span 2; align-self: center; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #E3F4E8; color: #17603A; white-space: nowrap; }
.lp-pill.sky { background: var(--sky-100); color: var(--ink); }
.lp-acct-foot { margin: 6px 0 0; font-size: 13px; color: var(--np-muted, #475569); }
.lp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--np-line, #DCE7F3); border-bottom: 1px solid var(--np-line, #DCE7F3); }
.lp-facts div { padding: 20px 18px; display: flex; flex-direction: column; gap: 2px; }
.lp-facts div + div { border-left: 1px solid var(--np-line, #DCE7F3); }
.lp-facts strong { font: 700 20px var(--display); color: var(--ink); }
.lp-facts span { font-size: 14px; color: var(--np-muted, #475569); }
.lp-why { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.lp-why div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 3px solid var(--sky); }
.lp-why h3 { font-size: 20px; margin: 0; }
.lp-why p { margin: 0; color: var(--np-muted, #475569); }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.lp-split ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.lp-split li { background: #FFFFFF; border: 1px solid var(--np-line, #DCE7F3); border-radius: 14px; padding: 14px 16px; }
.lp-split li b { display: block; color: var(--ink); }
.lp-split li span { color: var(--np-muted, #475569); font-size: 15px; }
@media (max-width: 860px) {
  .lp-hero-grid, .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-hero-grid { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
  .lp-facts div + div { border-left: 0; border-top: 1px solid var(--np-line, #DCE7F3); }
}
