:root {
  --bg: #faf8ff;
  --surface: #ffffff;
  --soft: #f2f3ff;
  --soft-2: #eaedff;
  --line: #c3c6d7;
  --text: #131b2e;
  --muted: #434655;
  --primary: #2563eb;
  --primary-dark: #0f4c81;
  --green: #16a34a;
  --code: #0f172a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 64px;
  padding: 0 32px;
  background: rgba(250, 248, 255, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--primary);
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.nav nav,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav nav a,
.login {
  color: var(--muted);
  font-size: 14px;
}

.nav nav .active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
}

.btn-sm {
  min-height: 36px;
  padding: 0 16px;
}

.btn-primary {
  color: white;
  background: var(--primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .18);
}

.btn-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  gap: 72px;
  align-items: center;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -120px -180px auto;
  width: 420px;
  height: 420px;
  background: rgba(146, 193, 254, .26);
  border-radius: 50%;
  filter: blur(64px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 650px;
  margin-bottom: 24px;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1.1;
}

.hero p {
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.starting {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.starting span {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 10px;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 450px;
  margin-inline: auto;
  padding: 24px;
  border: 1px solid rgba(195, 198, 215, .72);
  border-radius: 16px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04);
  transform: rotate(2deg);
  transition: transform .35s ease;
}

.hero-card:hover {
  transform: rotate(0deg);
}

.instance-row,
.usage-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.instance-row {
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(195, 198, 215, .5);
}

.instance-row div {
  display: grid;
  gap: 3px;
}

.instance-row strong {
  font-size: 14px;
}

.instance-row span,
.usage-row span {
  color: var(--muted);
  font-size: 12px;
}

.instance-row em {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--green);
  background: #dcfce7;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.usage-row {
  margin-top: 18px;
  font-size: 12px;
}

.meter {
  height: 8px;
  margin: 8px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: #dbe1ff;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

pre {
  margin: 0;
  padding: 18px;
  overflow-x: auto;
  color: #d1d5db;
  background: var(--code);
  border-radius: 10px;
  font: 14px/1.55 "JetBrains Mono", monospace;
}

code b { color: #4ade80; font-weight: 500; }
code i { color: #22d3ee; font-style: normal; }
code u { color: #fdba74; text-decoration: none; }

.value-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 42px;
  padding: 22px 32px;
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.value-strip span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.section,
.workflow,
.pricing,
.cta,
.register-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 88px 32px;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.2;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-grid article,
.price-card,
.flow,
.signup {
  border: 1px solid rgba(195, 198, 215, .72);
  border-radius: 12px;
  background: var(--surface);
}

.feature-grid article {
  padding: 24px;
  transition: transform .22s ease, box-shadow .22s ease;
}

.feature-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
}

.icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--primary);
  background: #dbe1ff;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
}

.feature-grid h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.feature-grid p,
.price-card p,
.cta p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.workflow {
  background: var(--surface);
  max-width: none;
  border-block: 1px solid rgba(195, 198, 215, .5);
}

.workflow .section-head,
.workflow .flow {
  max-width: 980px;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 44px 1fr 44px 1fr 44px 1fr;
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 20px;
}

.flow div {
  display: grid;
  min-height: 80px;
  place-items: center;
  color: var(--text);
  background: var(--soft);
  border-radius: 8px;
  font-weight: 800;
  text-align: center;
}

.flow span {
  height: 2px;
  background: var(--primary);
}

.pricing {
  max-width: none;
  background: var(--soft);
}

.pricing .section-head,
.price-grid {
  max-width: 900px;
  margin-inline: auto;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.price-card {
  position: relative;
  padding: 32px;
}

.price-card h3 {
  margin-bottom: 14px;
  font-size: 24px;
}

.price-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: 44px;
  letter-spacing: -0.03em;
}

.price-card strong span {
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
}

.price-card ul {
  display: grid;
  gap: 14px;
  margin: 28px 0 36px;
  padding-left: 18px;
  font-size: 14px;
}

.pro {
  color: white;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 12px 28px rgba(15, 76, 129, .24);
}

.pro p,
.pro li,
.pro strong span {
  color: rgba(255, 255, 255, .82);
}

.pro small {
  position: absolute;
  top: 0;
  right: 0;
  padding: 6px 12px;
  color: white;
  background: #14843b;
  border-bottom-left-radius: 8px;
  border-top-right-radius: 12px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid rgba(195, 198, 215, .5);
}

.cta div {
  max-width: 760px;
}

.cta h2 {
  max-width: 700px;
}

.cta p {
  max-width: 660px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.register-page {
  min-height: calc(100vh - 64px);
}

.auth-page {
  display: grid;
  min-height: calc(100vh - 64px);
  place-items: center;
  padding: 56px 16px;
}

.auth-card {
  display: grid;
  width: min(100%, 460px);
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(195, 198, 215, .72);
  border-radius: 12px;
  background: var(--surface);
}

.auth-card h1 {
  margin-bottom: 0;
  font-size: 32px;
}

.auth-card p {
  margin-bottom: 4px;
  color: var(--muted);
  line-height: 1.55;
}

.auth-card label {
  display: grid;
  gap: 8px;
}

.auth-card label > span {
  font-weight: 700;
}

.form-error {
  display: none;
  margin: 0;
  color: #ba1a1a;
  font-size: 14px;
  font-weight: 700;
}

.form-error.show {
  display: block;
}

.payment-page {
  min-height: calc(100vh - 64px);
  padding: 64px 16px;
}

.payment-card {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 48px;
  border: 1px solid rgba(195, 198, 215, .72);
  border-radius: 12px;
  background: var(--surface);
}

.checkout-steps {
  display: grid;
  grid-template-columns: auto 80px auto 80px auto;
  align-items: start;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.checkout-steps span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
}

.checkout-steps .done,
.checkout-steps .active {
  color: white;
  background: var(--primary);
  border-color: var(--primary);
}

.checkout-steps small {
  position: absolute;
  margin-top: 74px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.checkout-steps .active small {
  color: var(--primary);
}

.checkout-steps i {
  height: 2px;
  margin-top: 24px;
  background: var(--line);
}

.checkout-steps i:first-of-type {
  background: var(--primary);
}

.compact-head {
  margin-bottom: 32px;
}

.compact-head h1 {
  margin-bottom: 12px;
  font-size: 30px;
  text-align: center;
}

.invoice-box {
  display: grid;
  gap: 16px;
  margin-bottom: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.invoice-box div,
.bank-box {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.invoice-box span {
  color: var(--muted);
  font-weight: 700;
}

.invoice-box b {
  font-size: 18px;
}

.invoice-box .total b {
  color: var(--primary);
  font-size: 30px;
}

.invoice-box hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--line);
}

.payment-form {
  display: grid;
  gap: 22px;
}

.payment-form label {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.payment-form select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font: inherit;
}

.bank-box {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.bank-box span {
  color: var(--muted);
}

.bank-box strong {
  font-size: 24px;
  letter-spacing: .04em;
}

.bank-box button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary);
  background: var(--soft);
  font-weight: 800;
  cursor: pointer;
}

.payment-form em {
  float: right;
  color: #ba1a1a;
  font-style: normal;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 6px;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.upload-box input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-box strong {
  color: var(--primary);
}

.upload-box small {
  color: var(--muted);
}

.payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.status-card {
  text-align: center;
}

.status-icon {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--green);
  font-size: 28px;
  font-weight: 900;
}

.status-summary {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: left;
  color: var(--muted);
  font-size: 14px;
}

.admin-page {
  display: grid;
  gap: 44px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.admin-page h1 {
  margin-bottom: 0;
  font-size: 36px;
  line-height: 1.15;
}

.admin-page h2 {
  margin-bottom: 0;
  font-size: 28px;
  line-height: 1.2;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.admin-head h1,
.admin-head h2 {
  margin-bottom: 6px;
}

.admin-head p {
  margin: 0;
  color: var(--muted);
}

.admin-table {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(195, 198, 215, .72);
  border-radius: 12px;
  background: var(--surface);
}

.admin-health {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 700;
}

.admin-health.ok {
  color: var(--green);
  background: #dcfce7;
  border-color: #bbf7d0;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row div {
  display: grid;
  gap: 4px;
}

.admin-row span {
  color: var(--muted);
  font-size: 13px;
}

.admin-actions {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

.admin-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  font-weight: 700;
}

.method-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  margin-bottom: 16px;
}

.register-shell {
  display: grid;
  grid-template-columns: .86fr minmax(420px, 520px);
  gap: 48px;
  align-items: start;
}

.register-copy {
  position: sticky;
  top: 104px;
}

.register-copy h1 {
  font-size: clamp(36px, 5vw, 56px);
}

.register-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.step-label {
  margin-bottom: 16px;
  color: var(--primary) !important;
  font-size: 12px !important;
  font-weight: 800;
  letter-spacing: .08em;
}

.register-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.register-steps span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}

.register-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(195, 198, 215, .72);
  border-radius: 12px;
  background: var(--surface);
}

.register-form label {
  display: grid;
  gap: 8px;
}

.register-form label > span {
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.input-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 48px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.input-row i {
  display: grid;
  place-items: center;
  color: var(--muted);
  border-right: 1px solid var(--line);
  font-style: normal;
}

.input-row input,
.input-row select {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: var(--text);
  background: transparent;
  font: inherit;
  outline: 0;
}

.input-row:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.register-form small {
  color: var(--muted);
  font-size: 13px;
}

.btn-dark {
  width: 100%;
  color: white;
  background: var(--text);
  border-color: var(--text);
}

footer {
  display: grid;
  place-items: center;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .55s ease, transform .55s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav nav,
  .login {
    display: none;
  }

  .hero,
  .cta,
  .register-shell {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .register-copy {
    position: static;
  }

  .feature-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow span {
    width: 2px;
    height: 22px;
    margin: auto;
  }
}

/* QA hardening: checkout and client console */
.payment-body {
  background:
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, .12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #f4f7fc 100%);
}

.payment-page {
  display: grid;
  place-items: start center;
  min-height: calc(100vh - 76px);
  padding: 40px 16px 64px;
}

.payment-card {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 32px;
  border: 1px solid #dbe7f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 24px 80px rgba(15, 76, 129, .12);
}

.payment-card .compact-head {
  margin: 34px auto 28px;
  text-align: center;
}

.payment-card h1 {
  max-width: none;
  margin: 8px 0 10px;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.02;
}

.payment-grid {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 22px;
  align-items: start;
}

.checkout-steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 12px;
  align-items: start;
  max-width: 520px;
  margin: 0 auto;
}

.checkout-steps span {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #64748b;
  background: white;
  font-weight: 900;
}

.checkout-steps span.done,
.checkout-steps span.active {
  border-color: #2563eb;
  color: white;
  background: #2563eb;
}

.checkout-steps small {
  position: absolute;
  top: 56px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.checkout-steps span.active small {
  color: #2563eb;
}

.checkout-steps i {
  height: 2px;
  margin-top: 24px;
  background: #dbe7f7;
}

.checkout-steps i:first-of-type {
  background: #2563eb;
}

.invoice-box,
.payment-form {
  border: 1px solid #dbe7f7;
  border-radius: 14px;
  background: #fff;
}

.invoice-box {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.invoice-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.invoice-box span {
  color: #64748b;
  font-weight: 700;
}

.invoice-box b {
  color: #101a33;
  text-align: right;
}

.invoice-box hr {
  width: 100%;
  border: 0;
  border-top: 1px solid #e2e8f0;
}

.invoice-box .total {
  padding: 14px;
  border-radius: 12px;
  background: #eff6ff;
}

.invoice-box .total b {
  color: #2563eb;
  font-size: 24px;
}

.payment-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.payment-form label {
  display: grid;
  gap: 8px;
}

.payment-form label > span {
  color: #101a33;
  font-weight: 900;
}

.payment-form select {
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #101a33;
  background: white;
  font: inherit;
}

.bank-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
}

.bank-box div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.bank-box span,
.bank-box small {
  color: #475569;
}

.bank-box strong {
  color: #101a33;
  font-size: 22px;
  letter-spacing: 0;
}

.bank-box button {
  width: fit-content;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  color: #1d4ed8;
  background: white;
  font-weight: 900;
  cursor: pointer;
}

.upload-box {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  color: #101a33;
  background: #f8fbff;
  text-align: center;
}

.upload-box input {
  width: min(100%, 420px);
  color: #475569;
}

.payment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.client-body {
  min-height: 100vh;
  background: #f6f8fc;
}

.client-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: 276px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px;
  color: white;
  background: #102a56;
}

.client-logo {
  display: block;
  color: white;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 24px;
  font-weight: 900;
}

.client-sidebar p {
  margin: 6px 0 28px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.client-sidebar nav {
  display: grid;
  gap: 8px;
}

.client-sidebar nav a {
  padding: 13px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .72);
  font-weight: 800;
}

.client-sidebar nav a.active,
.client-sidebar nav a:hover {
  color: white;
  background: #2563eb;
}

.client-logout {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, .1);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.client-console {
  display: grid;
  gap: 22px;
  margin-left: 276px;
  padding: 32px;
}

.client-topbar,
.client-panel,
.client-metrics article {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
}

.client-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.client-topbar h1,
.client-panel h2 {
  max-width: none;
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
}

.client-topbar p,
.client-panel p {
  margin: 0;
  color: #64748b;
}

.client-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.client-metrics article {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.client-metrics span {
  color: #64748b;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.client-metrics strong {
  color: #101a33;
  font-size: 22px;
}

.client-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.client-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.empty-state,
.client-code,
.api-key-box {
  display: block;
  padding: 18px;
  border-radius: 10px;
  color: #475569;
  background: #f8fafc;
}

.api-key-box {
  display: grid;
  gap: 8px;
  border: 1px solid #dbe7f7;
}

.api-key-box span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.api-key-box strong {
  color: #101a33;
}

.api-key-box code,
.client-code {
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 980px) {
  .payment-card {
    padding: 22px;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .payment-actions,
  .bank-box div,
  .invoice-box div,
  .client-topbar,
  .client-panel-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .client-sidebar {
    position: static;
    width: auto;
  }

  .client-console {
    margin-left: 0;
    padding: 16px;
  }

  .client-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav {
    padding-inline: 16px;
  }

  .hero,
  .section,
  .workflow,
  .pricing,
  .cta,
  .register-page {
    padding: 56px 16px;
  }

  h1 {
    font-size: 36px;
  }

  .hero-card {
    transform: none;
    padding: 16px;
  }

  .feature-grid,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .value-strip {
    justify-content: flex-start;
    gap: 18px;
    padding-inline: 16px;
  }

  .payment-card {
    padding: 28px 16px;
  }

  .checkout-steps {
    grid-template-columns: auto 34px auto 34px auto;
  }

  .payment-actions,
  .bank-box,
  .invoice-box div,
  .admin-head,
  .admin-row,
  .method-form {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Admin console */
.admin-body {
  min-height: 100vh;
  background: #f6f8fc;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  width: 280px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px;
  color: white;
  background: #0f4c81;
}

.admin-logo {
  display: block;
  color: white;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 24px;
  font-weight: 800;
}

.admin-sidebar p {
  margin: 6px 0 28px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar nav a {
  padding: 13px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .68);
  font-weight: 700;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover {
  color: white;
  background: #2563eb;
}

.admin-logout {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  color: white;
  background: rgba(255, 255, 255, .1);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.admin-console {
  display: grid;
  gap: 24px;
  margin-left: 280px;
  padding: 32px;
}

.admin-topbar,
.admin-panel,
.admin-metrics article {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: white;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.admin-topbar h1,
.admin-panel h2 {
  max-width: none;
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.15;
}

.admin-topbar p,
.admin-panel p {
  margin: 0;
  color: #64748b;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.admin-metrics article {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.admin-metrics span {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-metrics strong {
  color: #131b2e;
  font-size: 26px;
}

.admin-metrics strong.ok {
  color: #16a34a;
}

.admin-panel {
  overflow: hidden;
}

.admin-panel-head {
  padding: 22px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table {
  display: grid;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.admin-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.admin-row:last-child {
  border-bottom: 0;
}

.admin-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-row b {
  color: #131b2e;
}

.admin-row span {
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #166534 !important;
  background: #dcfce7;
  font-size: 12px;
}

.admin-actions {
  display: flex !important;
  flex-direction: row;
  gap: 8px;
}

.admin-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #131b2e;
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.method-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 10px;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
}

.method-form input {
  min-height: 42px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .admin-sidebar {
    position: static;
    width: auto;
  }

  .admin-console {
    margin-left: 0;
    padding: 16px;
  }

  .admin-topbar,
  .admin-row,
  .method-form {
    grid-template-columns: 1fr;
  }

  .admin-topbar {
    display: grid;
  }

  .admin-metrics {
    grid-template-columns: 1fr;
  }
}
