html {
  font-size: 14px;
  min-height: 100%;
  position: relative;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --ink: #212529;
  --muted: #6c757d;
  --line: #dee2e6;
  --surface: #ffffff;
  --page: #f3f7fa;
  --brand-blue: #006aa6;
  --brand-blue-light: #0072b1;
  --brand-blue-dark: #073a63;
  --brand-orange: #f47b20;
  --brand-orange-soft: #fff3e8;
  --blue: var(--brand-blue);
  --sidebar: var(--brand-blue-dark);
  --sidebar-hover: #0d4d79;
  --radius: 6px;
  --tblr-primary: #006aa6;
  --tblr-primary-rgb: 0, 106, 166;
  --tblr-link-color: #006aa6;
  --tblr-link-hover-color: #004a7c;
}

*:focus-visible {
  outline: 3px solid rgba(0, 106, 166, 0.28);
  outline-offset: 2px;
}

body {
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-bottom: 72px;
  min-height: 100vh;
}

.admin-body {
  margin-bottom: 0;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: #004a7c;
}

.app-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.brand-lockup {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  height: 54px;
  object-fit: contain;
  width: auto;
}

.brand-logo-light {
  height: 54px;
}

.brand-badge,
.brand-mark {
  align-items: center;
  background: var(--blue);
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.app-nav {
  gap: 6px;
  margin-left: 24px;
}

.app-nav .nav-link {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  padding-inline: 12px;
}

.app-nav .nav-link:hover {
  background: #e7f6fc;
  color: var(--blue);
}

.app-main {
  padding-top: 32px;
}

.admin-shell {
  background: var(--page);
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--sidebar);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  color: #c2c7d0;
  padding: 0;
}

.admin-sidebar .container-fluid {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 0;
}

.sidebar-brand {
  border-bottom: 1px solid #4b545c;
  color: #ffffff;
  margin: 0;
  min-height: 58px;
  padding: 12px 16px;
}

.sidebar-brand:hover {
  color: #ffffff;
}

.sidebar-brand .brand-badge {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.brand-text {
  font-size: 18px;
  letter-spacing: 0;
}

.sidebar-user-panel {
  align-items: center;
  border-bottom: 1px solid #4b545c;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.sidebar-avatar {
  align-items: center;
  background: #adb5bd;
  border-radius: 999px;
  color: #212529;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.sidebar-user-panel strong,
.sidebar-user-panel small {
  display: block;
}

.sidebar-user-panel strong {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
}

.sidebar-user-panel small {
  color: #adb5bd;
  font-weight: 700;
}

.sidebar-nav,
.sidebar-section {
  gap: 6px;
  padding: 12px 10px;
}

.sidebar-section {
  border-top: 1px solid #4b545c;
}

.sidebar-section span,
.nav-section-title {
  color: #adb5bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 8px 10px 4px;
  text-transform: uppercase;
}

.sidebar-nav a,
.sidebar-section a {
  align-items: center;
  border-radius: 4px;
  color: #c2c7d0;
  display: flex;
  gap: 10px;
  font-weight: 700;
  min-height: 38px;
  padding: 9px 10px;
}

.sidebar-nav a:hover,
.sidebar-section a:hover,
.sidebar-nav .nav-item.active > .nav-link,
.sidebar-section .nav-item.active > .nav-link {
  background: var(--sidebar-hover);
  color: #ffffff;
}

.sidebar-nav .nav-item.active > .nav-link,
.sidebar-section .nav-item.active > .nav-link {
  box-shadow: inset 3px 0 0 var(--blue);
}

.nav-icon {
  align-items: center;
  color: #adb5bd;
  display: inline-flex;
  flex: 0 0 20px;
  font-weight: 800;
  justify-content: center;
}

.admin-content {
  background: var(--page);
  min-width: 0;
}

.admin-topbar {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  min-height: 57px;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar .container-xl {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 57px;
}

.admin-topbar strong,
.admin-topbar span {
  display: block;
}

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

.topbar-link {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 700;
  padding: 8px 12px;
}

.topbar-actions .btn,
.topbar-actions button {
  font-weight: 700;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-actions form {
  margin: 0;
}

.admin-main {
  padding: 22px 0;
}

.page-heading {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.page-heading h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
}

.eyebrow {
  color: var(--blue) !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 8px !important;
  text-transform: uppercase;
}

.primary-action,
.payment-form button {
  background: var(--blue);
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 12px 16px;
  white-space: nowrap;
}

.primary-action:hover,
.payment-form button:hover {
  background: #004a7c;
  color: #ffffff;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.metric-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metric-card,
.work-surface,
.payment-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.impersonation-banner {
  align-items: center;
  background: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  color: #7c2d12;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px 28px;
}

.impersonation-banner strong,
.impersonation-banner-content > div > span {
  display: block;
}

.impersonation-banner-content > div > span {
  color: #9a3412;
  font-weight: 700;
}

.impersonation-banner form,
.provider-quick-card form {
  margin: 0;
}

.metric-card {
  border-left: 4px solid var(--blue);
  min-height: 112px;
  padding: 16px 18px;
}

.metric-card:nth-child(4n + 2) {
  border-left-color: #20c997;
}

.metric-card:nth-child(4n + 3) {
  border-left-color: #ffc107;
}

.metric-card:nth-child(4n + 4) {
  border-left-color: #dc3545;
}

.metric-card span,
.payment-summary span {
  color: var(--muted);
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.metric-card strong {
  display: block;
  font-size: 28px;
  letter-spacing: 0;
}

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

.work-surface h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 4px;
}

.work-surface p {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.surface-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.surface-actions a {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 12px;
}

.admin-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.admin-table table {
  margin: 0;
}

.admin-table th {
  background: #f8f9fa;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-table td {
  vertical-align: middle;
}

.admin-table tbody tr:hover {
  background: #f3fbff;
}

.empty-state {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 4px;
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.admin-form,
.detail-grid,
.settings-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
  padding: 22px;
}

.admin-form {
  display: grid;
  gap: 16px;
  max-width: 820px;
}

.admin-form label {
  color: var(--ink);
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  margin-top: 8px;
  padding: 11px 12px;
  width: 100%;
}

.admin-form textarea {
  min-height: 110px;
  resize: vertical;
}

.admin-form textarea.bulk-lines {
  min-height: 220px;
}

.account-profile-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.admin-form.account-profile-form {
  max-width: none;
}

.account-profile-form section {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 16px;
  padding-bottom: 18px;
}

.account-profile-form section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.form-section-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
}

.form-section-heading > span {
  align-items: center;
  background: #fff3e8;
  border-radius: 8px;
  color: var(--brand-orange);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 22px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.form-section-heading h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 4px;
}

.form-section-heading p {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.account-profile-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(7, 58, 99, 0.08);
  display: grid;
  gap: 14px;
  padding: 22px;
  position: sticky;
  top: 80px;
}

.account-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-orange));
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.account-profile-card h2 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0;
}

.account-profile-card > p {
  color: var(--muted);
  font-weight: 700;
  margin: -8px 0 0;
  overflow-wrap: anywhere;
}

.account-profile-card dl {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
}

.account-profile-card dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 10px;
}

.account-profile-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.account-profile-card dd {
  color: var(--ink);
  font-weight: 800;
  margin: 0;
}

.account-security-note,
.account-warning {
  align-items: flex-start;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

.account-security-note {
  background: #eef7fc;
  border: 1px solid #cfe4f1;
  color: var(--brand-blue-dark);
}

.account-warning {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  margin-bottom: 18px;
}

.account-security-note > span,
.account-warning > span {
  font-size: 22px;
  margin-top: 1px;
}

.account-security-note p,
.account-warning p {
  font-weight: 700;
  margin: 0;
}

.account-warning strong {
  display: block;
  font-weight: 900;
  margin-bottom: 2px;
}

.account-profile-form .form-help {
  background: transparent;
  border: 0;
  color: var(--muted);
  display: block;
  line-height: 1.55;
  margin: -4px 0 0;
  max-width: none;
  padding: 0;
  text-align: left;
  width: auto;
}

.admin-form [data-valmsg-for],
.admin-form .field-validation-error {
  color: #b42318;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.form-help {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: default;
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  margin: -8px 0 0;
  max-width: none;
  padding: 0;
  text-align: left;
  width: auto;
}

.form-help:hover,
.form-help:focus,
.form-help:active {
  color: var(--muted) !important;
  cursor: default;
  text-decoration: none;
}

.admin-form .form-help {
  grid-column: 1 / -1;
}

.admin-form .form-help span {
  color: inherit;
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.form-check-row {
  align-items: center;
  display: inline-flex;
  gap: 0.65rem;
  line-height: 1.35;
  margin: 0;
  width: fit-content;
}

.admin-form .form-check-row input[type="checkbox"],
.admin-form input[type="checkbox"] {
  display: inline-block;
  flex: 0 0 auto;
  height: 1.1rem;
  margin: 0;
  min-height: 0;
  padding: 0;
  width: 1.1rem;
}

.provider-quick-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.provider-quick-card,
.provider-guide {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.12);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.provider-quick-card {
  align-content: space-between;
  min-height: 186px;
}

.provider-quick-card-muted {
  opacity: 0.72;
}

.provider-quick-card h2,
.provider-guide h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 10px 0 6px;
}

.provider-quick-card p,
.provider-guide p,
.provider-guide li {
  color: var(--muted);
  font-weight: 600;
}

.provider-guide {
  background: #f8fafc;
  border-style: dashed;
}

.provider-guide-plain {
  background: #ffffff;
}

.provider-guide-list {
  display: grid;
  gap: 8px;
}

.provider-guide-list strong {
  font-size: 14px;
}

.provider-guide-list ul,
.provider-guide-list ol {
  margin: 0;
  padding-left: 18px;
}

.provider-guide-list li + li {
  margin-top: 6px;
}

.provider-deep-guide {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(7, 58, 99, 0.06);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.provider-deep-guide-heading {
  display: grid;
  gap: 8px;
}

.provider-deep-guide-heading .status-badge {
  justify-self: start;
  width: fit-content;
}

.provider-deep-guide-heading h2 {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0;
}

.provider-deep-guide-heading p,
.provider-onboarding-card p,
.provider-field-map p,
.provider-alert-note p {
  color: var(--muted);
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}

.provider-onboarding-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.provider-onboarding-card {
  background: #ffffff;
  border: 1px solid #d9e6f3;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  min-height: 11rem;
  padding: 16px;
}

.provider-onboarding-card h3 {
  color: #073a63;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0;
}

.provider-step-number {
  align-items: center;
  background: #0b76b7;
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  height: 2.2rem;
  justify-content: center;
  line-height: 1;
  width: 2.2rem;
}

.provider-field-map {
  align-items: center;
  background: #eff7ff;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.provider-field-map strong {
  color: #073a63;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.provider-field-map-items {
  display: grid;
  gap: 6px;
}

.provider-field-map .secondary-action {
  flex: 0 0 auto;
  min-width: 9.75rem;
  white-space: nowrap;
}

.provider-deep-guide code {
  background: #fff4e8;
  border: 1px solid #ffd7ad;
  border-radius: 6px;
  color: #9b3d0a;
  font-size: 0.86em;
  padding: 0.12rem 0.32rem;
  white-space: normal;
}

.provider-alert-note {
  align-items: flex-start;
  background: #fff8f1;
  border: 1px solid #ffd7ad;
  border-radius: 8px;
  display: flex;
  gap: 12px;
  padding: 14px 16px;
}

.provider-alert-note .ti {
  color: #f97316;
  flex: 0 0 auto;
  font-size: 1.35rem;
  line-height: 1;
  margin-top: 2px;
}

.provider-alert-note p,
.provider-alert-note p:hover,
.subscription-current-card p,
.subscription-current-card p:hover,
.billing-estimate-card p,
.billing-estimate-card p:hover {
  cursor: default;
  text-decoration: none;
}

.surface-heading-row {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.subscription-current-card,
.billing-estimate-card {
  background: #f8fbff;
  border: 1px solid #d9e6f3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.subscription-current-card h3 {
  color: #073a63;
  font-size: 1.12rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 8px 0 2px;
}

.subscription-current-card p,
.billing-estimate-card p {
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}

.subscription-current-card dl {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.subscription-current-card dl div {
  background: #ffffff;
  border: 1px solid #e3edf7;
  border-radius: 8px;
  padding: 10px;
}

.subscription-current-card dt,
.billing-estimate-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.subscription-current-card dd {
  color: var(--ink);
  font-weight: 760;
  margin: 4px 0 0;
}

.billing-estimate-card {
  background: #fff8f1;
  border-color: #ffd7ad;
}

.billing-estimate-card strong {
  color: #9b3d0a;
  font-size: 1.45rem;
  font-weight: 800;
}

.subscription-history {
  background: #ffffff;
  border: 1px solid #d9e6f3;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.subscription-history h3 {
  color: #073a63;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0;
}

.compact-table {
  box-shadow: none;
  overflow-x: auto;
  overflow-y: hidden;
}

.compact-table table {
  min-width: 0;
  table-layout: fixed;
}

.compact-table th,
.compact-table td {
  padding: 0.85rem 1rem;
}

.subscription-history .admin-table tbody tr:hover {
  background: #f8fbff;
}

.subscription-plan-cell {
  align-items: flex-start;
  display: grid;
  gap: 4px;
  justify-items: start;
  line-height: 1.25;
  min-width: 0;
}

.subscription-plan-cell strong {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.subscription-plan-cell span {
  background: transparent;
  color: var(--muted);
  cursor: default;
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
  padding: 0;
  text-decoration: none;
  user-select: text;
}

.subscription-assignment-form {
  align-self: start;
  gap: 1.2rem;
  max-width: 100%;
}

.subscription-assignment-form h2 {
  margin-bottom: -0.2rem;
}

.subscription-assignment-intro {
  color: var(--muted);
  cursor: default;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.65;
  margin: 0 0 0.35rem;
  max-width: 58rem;
}

.subscription-assignment-form > label,
.subscription-assignment-form .form-grid > label {
  display: block;
}

.subscription-assignment-form input,
.subscription-assignment-form select,
.subscription-assignment-form textarea {
  margin-top: 0.55rem;
}

.cpvpos-code-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.cpvpos-code-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cpvpos-code-grid span {
  background: #f8fafc;
  border: 1px solid #e6edf7;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}

.cpvpos-code-grid b {
  color: var(--ink);
  margin-right: 6px;
}

.form-check-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.form-check-row input {
  margin: 0;
  width: auto;
}

.form-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.form-section h2 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

.detail-grid,
.settings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.detail-item span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail-item strong {
  word-break: break-word;
}

.inline-notification-form {
  display: grid;
  gap: 12px;
}

.inline-notification-form h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0;
}

.inline-notification-form label {
  color: var(--ink);
  font-weight: 700;
}

.inline-notification-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  margin-top: 8px;
  padding: 11px 12px;
  width: 100%;
}

.status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.status-active,
.status-succeeded,
.status-sent,
.status-verified {
  background: #dcfce7;
  color: #047857;
}

.status-passive,
.status-failed,
.status-rejected {
  background: #fee2e2;
  color: #b42318;
}

.status-pending,
.status-draft {
  background: #fff7ed;
  color: #9a3412;
}

.status-open,
.status-neversynced {
  background: #e7f6fc;
  color: var(--brand-blue);
}

.status-overdue,
.status-cancelled {
  background: #fee2e2;
  color: #b42318;
}

.status-partiallypaid {
  background: #fef9c3;
  color: #854d0e;
}

.status-paid {
  background: #dcfce7;
  color: #047857;
}

.button-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.table-actions {
  justify-content: flex-end;
}

.table-actions form {
  margin: 0;
}

.table-actions .primary-action,
.table-actions .secondary-action,
.table-actions .danger-action {
  padding: 8px 10px;
}

.secondary-action {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  padding: 12px 16px;
}

.secondary-action:hover,
.topbar-link:hover {
  background: #f8f9fa;
  color: #0b5ed7;
}

.danger-action {
  background: #fee2e2;
  border: 0;
  border-radius: 4px;
  color: #b42318;
  font-weight: 800;
  padding: 12px 16px;
}

.brand-swatch {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  width: 18px;
}

.color-swatch {
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  height: 16px;
  margin-right: 8px;
  vertical-align: -2px;
  width: 16px;
}

.provider-state-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.provider-state-list li {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(96px, 0.8fr) minmax(0, 1fr) auto;
  padding: 0 0 10px;
}

.provider-state-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.provider-state-list span:not(.status-badge) {
  color: var(--muted);
  font-weight: 700;
}

.payment-shell {
  margin: 24px auto;
  max-width: 720px;
  padding: 28px;
}

.payment-shell-wide {
  max-width: 980px;
}

.public-payment-body {
  margin-bottom: 0;
}

.public-payment-header {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  min-height: 68px;
  padding: 14px 20px;
}

.public-payment-header .brand-logo {
  height: 58px;
}

.public-payment-main {
  padding: 24px 16px 16px;
}

.public-payment-footer {
  color: var(--muted);
  display: grid;
  font-size: 14px;
  gap: 4px;
  padding: 16px;
  text-align: center;
}

.payment-brand {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
}

.payment-brand .brand-mark {
  background: var(--brand-color, var(--blue));
  flex: 0 0 auto;
  height: 48px;
  width: 48px;
}

.payment-logo {
  border: 1px solid var(--line);
  border-radius: 8px;
  flex: 0 0 auto;
  height: 56px;
  object-fit: contain;
  width: 56px;
}

.payment-brand span {
  color: var(--muted);
  font-weight: 700;
}

.payment-brand h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 2px 0 8px;
}

.payment-brand p {
  color: var(--muted);
  margin: 0;
}

.payment-summary {
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-color, var(--blue));
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 18px;
}

.payment-summary strong {
  display: block;
  font-size: 34px;
  letter-spacing: 0;
}

.payment-summary small {
  color: var(--muted);
}

.payment-summary p {
  color: var(--ink);
  margin: 10px 0;
}

.payment-requester-card {
  background: #f7fbfd;
  border: 1px solid #d8e8f3;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 12px;
}

.payment-requester-card strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.payment-requester-card small {
  color: var(--muted);
  font-weight: 700;
}

.payment-requester-label {
  color: var(--brand-color, var(--blue)) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.payment-flow-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.payment-summary-sticky {
  position: sticky;
  top: 20px;
}

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

.payment-form label {
  color: var(--ink);
  font-weight: 700;
}

.payment-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  margin-top: 8px;
  padding: 12px;
  width: 100%;
}

.payment-form input:disabled {
  background: #f2f5f9;
}

.payment-form span,
.field-validation-error {
  color: #b42318;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-divider {
  background: var(--line);
  height: 1px;
  margin: 4px 0;
}

.payment-validation-summary ul {
  background: #fff1f0;
  border: 1px solid #ffccc7;
  border-radius: var(--radius);
  color: #912018;
  margin: 0;
  padding: 12px 16px 12px 28px;
}

.payment-alert {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  color: #9a3412;
  font-weight: 700;
  margin: 18px 0;
  padding: 12px;
}

.payment-card-brands {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8e8f3;
  border-radius: 10px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 20px;
  padding: 16px 18px;
}

.payment-card-copy {
  min-width: 0;
}

.payment-card-copy span {
  color: var(--brand-color, var(--blue));
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.payment-card-copy p {
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.payment-card-logo-row {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.payment-card-logo-row .payment {
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(7, 58, 99, 0.06);
  height: 34px;
}

@media (max-width: 720px) {
  .payment-card-brands {
    align-items: flex-start;
    flex-direction: column;
  }

  .payment-card-logo-row {
    justify-content: flex-start;
  }
}

.payment-note {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
}

.result-shell {
  max-width: 640px;
  text-align: center;
}

.result-shell h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
}

.result-shell p {
  color: var(--muted);
}

.result-icon {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 28px;
  font-weight: 900;
  height: 56px;
  justify-content: center;
  margin-bottom: 16px;
  width: 56px;
}

.result-icon-success {
  background: #dcfce7;
  color: #047857;
}

.result-icon-failed {
  background: #fee2e2;
  color: #b42318;
}

.result-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 20px auto;
  max-width: 360px;
  padding: 16px;
}

.result-summary span,
.result-summary small {
  color: var(--muted);
  display: block;
}

.result-summary strong {
  display: block;
  font-size: 30px;
  letter-spacing: 0;
  margin: 6px 0;
}

.footer {
  bottom: 0;
  line-height: 60px;
  position: absolute;
  width: 100%;
}

.auth-body {
  background: #e7f6fc;
  margin: 0;
  min-height: 100vh;
}

.auth-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.auth-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 460px;
  padding: 28px;
  width: 100%;
}

.auth-panel .brand-lockup {
  justify-content: center;
}

.auth-panel .brand-logo {
  height: 96px;
  max-width: 100%;
}

.auth-panel h1 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 8px;
}

.auth-panel p {
  color: var(--muted);
  margin: 0;
}

.auth-copyright {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.auth-body.auth-body-tabler {
  background:
    linear-gradient(135deg, rgba(0, 106, 166, 0.09) 0%, rgba(247, 250, 252, 0.96) 46%, rgba(244, 123, 32, 0.09) 100%),
    #f6f8fb;
  color: var(--ink);
}

.auth-page {
  min-height: 100vh;
}

.auth-container {
  max-width: 29rem;
}

.auth-logo {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
  width: min(350px, 82vw);
}

.auth-card {
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(7, 58, 99, 0.14);
  overflow: hidden;
}

.auth-card .card-body {
  padding: 2rem;
}

.auth-eyebrow {
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 0.45rem;
  text-align: center;
  text-transform: uppercase;
}

.auth-login-form .form-label {
  color: var(--ink);
  font-weight: 700;
}

.auth-login-form .form-control {
  border-color: #d9e4f2;
  border-radius: 6px;
  min-height: 44px;
}

.auth-login-form .form-control:focus,
.auth-login-form .form-check-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 106, 166, 0.15);
}

.auth-submit {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
}

.auth-demo-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #d9e4f2;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(7, 58, 99, 0.08);
}

.auth-demo-card .card-body {
  display: grid;
  gap: 10px;
  padding: 1rem;
}

.auth-demo-title,
.auth-demo-row,
.auth-demo-password {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.auth-demo-title {
  color: var(--ink);
  font-weight: 800;
  justify-content: flex-start;
}

.auth-demo-row span,
.auth-demo-password {
  color: var(--muted);
  font-weight: 700;
}

.auth-demo-row code {
  background: #eef6fb;
  border-radius: 6px;
  color: var(--brand-blue-dark);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 8px;
  white-space: nowrap;
}

.auth-demo-password strong {
  color: var(--brand-blue-dark);
}

@media (max-width: 575.98px) {
  .auth-card .card-body {
    padding: 1.35rem;
  }

  .auth-logo {
    width: min(300px, 88vw);
  }

  .auth-demo-row,
  .auth-demo-password {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .auth-demo-row code {
    white-space: normal;
    word-break: break-word;
  }
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-form label {
  color: var(--ink);
  font-weight: 700;
}

.auth-form input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: block;
  margin-top: 8px;
  padding: 12px;
  width: 100%;
}

.auth-form span,
.auth-form .field-validation-error {
  color: #b42318;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.demo-credentials {
  background: #f5f7fb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.demo-credentials strong,
.demo-credentials span,
.demo-credentials code {
  display: block;
}

.demo-credentials span,
.demo-credentials code {
  color: var(--muted);
  font-weight: 700;
}

.demo-credential-row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.demo-credential-row code {
  color: var(--ink);
  font-family: inherit;
}

@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }

  .sidebar-nav,
  .sidebar-section {
    display: flex;
    flex-wrap: wrap;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-surface,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

  .payment-summary-sticky {
    position: static;
  }

  .detail-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .provider-quick-grid {
    grid-template-columns: 1fr;
  }

  .impersonation-banner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 18px;
  }

  .cpvpos-code-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-main {
    padding: 18px 0;
  }

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

  .payment-brand {
    align-items: flex-start;
  }

  .payment-shell {
    padding: 20px;
  }

  .form-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .cpvpos-code-grid {
    grid-template-columns: 1fr;
  }
}

/* Tabler theme pass */
.admin-body {
  background: var(--tblr-bg-surface-secondary, #f3f7fa);
}

.admin-body .page {
  background: var(--tblr-bg-surface-secondary, #f3f7fa);
}

.admin-sidebar.navbar {
  background: var(--brand-blue-dark);
  border-right: 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.admin-sidebar .container-fluid {
  min-height: 100vh;
}

.admin-sidebar .brand-lockup {
  background: #ffffff;
  border-radius: 8px;
  color: #ffffff;
  padding: 4px 8px;
  min-width: 0;
}

.admin-sidebar .brand-lockup:hover {
  background: #ffffff;
  color: #ffffff;
}

.admin-sidebar .brand-badge {
  background: var(--brand-blue);
  border-radius: var(--tblr-border-radius, 4px);
  box-shadow: none;
  height: 2rem;
  width: 2rem;
}

.admin-sidebar .brand-logo {
  border-radius: 8px;
  height: 3rem;
  max-width: 100%;
  object-fit: contain;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0.75rem 1rem;
  width: 100%;
}

.sidebar-brand .navbar-toggler {
  margin-left: auto;
}

.brand-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}

.sidebar-user-panel {
  background: rgba(255, 255, 255, 0.04);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
  background: rgba(244, 123, 32, 0.2);
  color: #ffffff;
}

.sidebar-nav {
  display: block;
  padding: 0.75rem;
  width: 100%;
}

.sidebar-nav .nav-item {
  margin: 0.125rem 0;
}

.sidebar-nav .nav-link {
  border-radius: var(--tblr-border-radius, 4px);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 650;
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
}

.sidebar-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.sidebar-nav .nav-item.active > .nav-link {
  background: rgba(244, 123, 32, 0.18);
  box-shadow: inset 3px 0 0 var(--brand-orange);
  color: #ffffff;
}

.nav-section-title {
  color: rgba(255, 255, 255, 0.48);
  list-style: none;
  padding: 1rem 0.75rem 0.35rem;
}

.nav-link-icon.nav-icon {
  color: currentColor;
  flex: 0 0 1.25rem;
  font-size: 0;
  width: 1.25rem;
}

.nav-link-icon.nav-icon::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.45rem;
  opacity: 0.76;
  width: 0.45rem;
}

.sidebar-nav .nav-link-icon.ti {
  align-items: center;
  color: currentColor;
  display: inline-flex;
  flex: 0 0 1.25rem;
  font-size: 1.15rem;
  height: 1.25rem;
  justify-content: center;
  margin-right: 0.15rem;
  opacity: 0.82;
  width: 1.25rem;
}

.admin-content {
  background: var(--tblr-bg-surface-secondary, #f3f7fa);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  background: var(--tblr-bg-surface, #ffffff);
  box-shadow: none;
  min-height: 4rem;
}

.admin-topbar .container-xl {
  min-height: 4rem;
}

.topbar-actions .btn {
  align-items: center;
  gap: 0.4rem;
  min-height: 2.4rem;
}

.topbar-actions .ti,
.primary-action .ti,
.secondary-action .ti,
.danger-action .ti {
  font-size: 1rem;
}

.admin-main {
  flex: 1 0 auto;
  padding: 1.25rem 0 2rem;
}

.admin-footer {
  border-top: 1px solid var(--tblr-border-color, #dce1e7);
  color: var(--tblr-secondary-color, #667085);
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 650;
  padding: 1rem max(1rem, calc((100vw - 1320px) / 2 + 1rem));
}

.page-heading {
  align-items: center;
  margin-bottom: 1rem;
}

.page-heading h1 {
  color: var(--tblr-heading-color, #1f2937);
  font-size: 1.65rem;
  font-weight: 750;
  line-height: 1.2;
}

.page-heading p {
  color: var(--tblr-secondary-color, #667085);
  font-size: 0.95rem;
}

.eyebrow {
  color: var(--brand-blue) !important;
  font-size: 0.75rem;
  margin-bottom: 0.35rem !important;
}

.metric-grid {
  gap: 1rem;
}

.metric-card,
.work-surface,
.admin-table,
.admin-form,
.detail-grid,
.settings-grid,
.provider-quick-card,
.provider-guide {
  background: var(--tblr-card-bg, #ffffff);
  border: 1px solid var(--tblr-border-color, #dce1e7);
  border-radius: var(--tblr-border-radius, 4px);
  box-shadow: var(--tblr-box-shadow-card, 0 1px 2px rgba(15, 23, 42, 0.04));
}

.metric-card {
  border-left: 0;
  min-height: 7.25rem;
  padding: 1rem;
}

.metric-card::before {
  background: var(--brand-blue);
  border-radius: 999px;
  content: "";
  display: block;
  height: 0.25rem;
  margin-bottom: 0.85rem;
  width: 2.25rem;
}

.metric-card:nth-child(4n + 2)::before {
  background: var(--brand-blue-light);
}

.metric-card:nth-child(4n + 3)::before {
  background: var(--brand-orange);
}

.metric-card:nth-child(4n + 4)::before {
  background: #d45113;
}

.metric-card span {
  color: var(--tblr-secondary-color, #667085);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.metric-card strong {
  font-size: 1.55rem;
  font-weight: 760;
}

.work-surface {
  padding: 1rem 1.15rem;
}

.work-surface h2,
.provider-quick-card h2,
.provider-guide h2,
.form-section h2 {
  font-size: 1.05rem;
  font-weight: 740;
}

.surface-actions a,
.primary-action,
.secondary-action,
.danger-action,
.payment-form button {
  align-items: center;
  border-radius: var(--tblr-border-radius, 4px);
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 650;
  justify-content: center;
  line-height: 1.25;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.primary-action,
.payment-form button {
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  color: #ffffff;
}

.primary-action:hover,
.payment-form button:hover {
  background: #004a7c;
  border-color: #004a7c;
  color: #ffffff;
}

.secondary-action,
.surface-actions a {
  background: #ffffff;
  border: 1px solid var(--tblr-border-color, #dce1e7);
  color: var(--tblr-body-color, #1f2937);
}

.secondary-action:hover,
.surface-actions a:hover {
  background: var(--brand-orange-soft);
  color: var(--brand-blue);
}

.danger-action {
  background: #fff5f5;
  border: 1px solid #ffd5d5;
  color: #d63939;
}

.danger-action:hover {
  background: #ffecec;
  border-color: #ffbcbc;
  color: #b02a2a;
}

.button-row,
.surface-actions,
.topbar-actions,
.table-actions {
  gap: 0.5rem;
}

.admin-table {
  overflow: auto;
}

.admin-table table {
  background: #ffffff;
}

.admin-table th {
  background: var(--tblr-bg-surface-secondary, #f8fafc);
  color: var(--tblr-secondary-color, #667085);
  font-size: 0.78rem;
  padding: 0.75rem;
}

.admin-table td {
  padding: 0.75rem;
}

.admin-table tbody tr:hover {
  background: #f3fbff;
}

.admin-form,
.detail-grid,
.settings-grid {
  padding: 1.25rem;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.inline-notification-form input,
.payment-form input,
.auth-form input {
  border-color: var(--tblr-border-color, #dce1e7);
  border-radius: var(--tblr-border-radius, 4px);
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.inline-notification-form input:focus,
.payment-form input:focus,
.auth-form input:focus {
  border-color: #69a9c9;
  box-shadow: 0 0 0 0.25rem rgba(0, 106, 166, 0.12);
  outline: 0;
}

.status-badge {
  font-size: 0.75rem;
  font-weight: 650;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.provider-quick-grid {
  gap: 1rem;
}

.provider-quick-card {
  min-height: auto;
  padding: 1rem;
}

.impersonation-banner {
  padding-left: max(1rem, calc((100vw - 1320px) / 2 + 1rem));
  padding-right: max(1rem, calc((100vw - 1320px) / 2 + 1rem));
}

@media (min-width: 992px) {
  .admin-sidebar.navbar-vertical {
    width: 17rem;
  }

  .admin-sidebar.navbar-vertical ~ .page-wrapper {
    margin-left: 17rem;
  }
}

@media (max-width: 991.98px) {
  .account-profile-layout {
    grid-template-columns: 1fr;
  }

  .account-profile-card {
    order: -1;
    position: static;
  }

  .admin-sidebar .container-fluid {
    min-height: auto;
  }

  .sidebar-brand {
    min-height: 3.75rem;
  }

  .sidebar-user-panel {
    display: none;
  }

  .sidebar-nav {
    display: block;
    padding: 0.5rem 1rem 1rem;
  }

  .admin-topbar .container-xl {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    padding-top: 0.75rem;
  }
}

@media (max-width: 575.98px) {
  .page-heading {
    align-items: stretch;
    gap: 0.75rem;
  }

  .page-heading .button-row,
  .page-heading > a,
  .page-heading > div:last-child {
    width: 100%;
  }

  .page-heading .button-row > *,
  .page-heading > a,
  .topbar-actions > *,
  .topbar-actions form,
  .topbar-actions button {
    width: 100%;
  }

  .topbar-actions {
    width: 100%;
  }
}

/* Admin panel visual alignment pass */
.admin-body {
  --panel-sidebar-width: 17rem;
  background: #f5f8fb;
}

.admin-body .page,
.admin-content {
  background: #f5f8fb;
}

.admin-sidebar.navbar {
  background: #ffffff;
  border-right: 1px solid #dbe5f0;
  box-shadow: 0 18px 42px rgba(7, 58, 99, 0.08);
  color: var(--ink);
}

.admin-sidebar .container-fluid {
  align-items: stretch;
  min-height: 100vh;
  padding: 0;
}

.sidebar-brand {
  border-bottom: 1px solid #e3edf7;
  min-height: 5rem;
  padding: 0.85rem 1rem;
}

.admin-sidebar .brand-lockup,
.admin-sidebar .brand-lockup:hover {
  background: transparent;
  border-radius: 0;
  color: inherit;
  display: inline-flex;
  height: 3.75rem;
  max-width: 13.75rem;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

.admin-sidebar .brand-logo {
  border-radius: 0;
  display: block;
  height: 3.75rem;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.sidebar-user-panel {
  background: #f2f8fc;
  border: 1px solid #d9e8f3;
  border-radius: 8px;
  margin: 0.85rem 0.85rem 0.25rem;
  padding: 0.75rem;
}

.sidebar-user-panel strong {
  color: var(--ink);
}

.sidebar-user-panel small {
  color: var(--muted);
}

.sidebar-avatar {
  background: var(--brand-orange-soft);
  color: var(--brand-blue-dark);
}

.sidebar-nav {
  display: block;
  padding: 0.75rem;
}

.nav-section-title {
  color: #7c8aa5;
  font-size: 0.72rem;
  padding: 0.95rem 0.75rem 0.35rem;
}

.sidebar-nav .nav-link {
  border-radius: 8px;
  color: #344054;
  font-weight: 700;
  gap: 0.6rem;
  min-height: 2.55rem;
  padding: 0.62rem 0.75rem;
  text-decoration: none;
}

.sidebar-nav .nav-link:hover {
  background: #eef7fc;
  color: var(--brand-blue-dark);
}

.sidebar-nav .nav-item.active > .nav-link {
  background: #e7f6fc;
  box-shadow: inset 3px 0 0 var(--brand-blue);
  color: var(--brand-blue-dark);
}

.sidebar-nav .nav-link-icon.ti {
  color: var(--brand-blue);
  flex: 0 0 1.25rem;
  font-size: 1.16rem;
  margin-right: 0;
  opacity: 1;
}

.sidebar-nav .nav-item.active > .nav-link .nav-link-icon.ti {
  color: var(--brand-orange);
}

.admin-content {
  min-width: 0;
}

.admin-topbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dbe5f0;
  box-shadow: 0 4px 18px rgba(7, 58, 99, 0.04);
  min-height: 4.5rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar .container-xl {
  align-items: center;
  display: flex;
  gap: 1rem;
  min-height: 4.5rem;
}

.admin-topbar strong,
.admin-topbar span {
  display: block;
}

.admin-topbar strong {
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.admin-topbar span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-left: auto;
}

.topbar-actions form {
  display: inline-flex;
  margin: 0;
}

.topbar-actions .btn {
  border-radius: 8px;
  font-weight: 750;
  white-space: nowrap;
}

.admin-main {
  padding: 1.5rem 0 2rem;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-heading > div:first-child {
  min-width: 0;
}

.page-heading h1 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.page-heading p {
  color: var(--muted);
  margin: 0;
  max-width: 64rem;
}

.button-row,
.surface-actions,
.table-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.button-row,
.surface-actions {
  flex-wrap: wrap;
}

.table-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.table-actions form {
  display: inline-flex;
  margin: 0;
}

.table-actions .primary-action,
.table-actions .secondary-action,
.table-actions .danger-action {
  min-height: 2.15rem;
  padding: 0.42rem 0.65rem;
  white-space: nowrap;
}

.metric-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
}

.metric-card,
.work-surface,
.admin-table,
.admin-form,
.detail-grid,
.settings-grid,
.provider-quick-card,
.provider-guide {
  border-color: #dbe5f0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(7, 58, 99, 0.05);
}

.work-surface,
.admin-form,
.detail-grid,
.settings-grid {
  padding: 1.25rem;
}

.admin-table {
  overflow-x: auto;
  overflow-y: hidden;
}

.admin-table table {
  margin: 0;
  min-width: 760px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  vertical-align: middle;
}

.admin-table th {
  background: #f7fafc;
  border-bottom-color: #dbe5f0;
  color: #667085;
  font-size: 0.76rem;
  letter-spacing: 0;
  padding: 0.78rem 0.85rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  color: var(--ink);
  padding: 0.82rem 0.85rem;
}

.admin-form {
  max-width: min(100%, 56rem);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  border-color: #d6e1ee;
  border-radius: 8px;
  min-height: 2.65rem;
}

.admin-form input[type="color"] {
  min-height: 2.65rem;
  padding: 0.25rem;
}

.admin-form textarea {
  min-height: 8rem;
  resize: vertical;
}

.admin-form textarea[name="SecretReference"],
.admin-form textarea[name="SettingsJson"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.55;
  min-height: 10rem;
}

.subscription-history .compact-table table {
  min-width: 100% !important;
  table-layout: fixed;
  width: 100%;
}

.subscription-history .compact-table th,
.subscription-history .compact-table td {
  padding: 0.72rem 0.75rem;
  white-space: normal;
}

.subscription-history .compact-table th:nth-child(1),
.subscription-history .compact-table td:nth-child(1) {
  width: 42%;
}

.subscription-history .compact-table th:nth-child(2),
.subscription-history .compact-table td:nth-child(2) {
  width: 18%;
}

.subscription-history .compact-table th:nth-child(3),
.subscription-history .compact-table td:nth-child(3),
.subscription-history .compact-table th:nth-child(4),
.subscription-history .compact-table td:nth-child(4) {
  width: 20%;
}

.empty-state {
  border-radius: 8px;
}

@media (min-width: 992px) {
  .admin-sidebar.navbar-vertical {
    width: var(--panel-sidebar-width);
  }

  .admin-sidebar.navbar-vertical ~ .page-wrapper {
    margin-left: var(--panel-sidebar-width);
  }
}

@media (max-width: 991.98px) {
  .admin-sidebar .container-fluid {
    min-height: auto;
  }

  .sidebar-brand {
    min-height: 4.25rem;
  }

  .admin-sidebar .brand-lockup,
  .admin-sidebar .brand-logo {
    height: 3.2rem;
  }

  .admin-sidebar .brand-lockup {
    max-width: 12rem;
  }

  .sidebar-user-panel {
    display: none;
  }

  .sidebar-nav {
    padding: 0.5rem 1rem 1rem;
  }

  .admin-topbar {
    position: static;
  }

  .admin-topbar .container-xl {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 0.8rem;
    padding-top: 0.8rem;
  }

  .topbar-actions {
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 575.98px) {
  .admin-main {
    padding-top: 1rem;
  }

  .account-profile-form section,
  .account-profile-card {
    padding: 1rem;
  }

  .form-section-heading {
    display: grid;
  }

  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .page-heading .button-row,
  .page-heading > a,
  .page-heading > div:last-child,
  .topbar-actions,
  .topbar-actions > *,
  .topbar-actions form,
  .topbar-actions button {
    width: 100%;
  }

  .topbar-actions .btn,
  .topbar-actions button,
  .button-row > a,
  .button-row > button,
  .button-row > form {
    width: 100%;
  }

  .table-actions,
  .table-actions form,
  .table-actions button,
  .table-actions a {
    width: auto;
  }
}

/* Impersonation notice refinement */
.impersonation-banner {
  align-items: center;
  background: linear-gradient(90deg, rgba(0, 106, 166, 0.07), rgba(244, 123, 32, 0.06));
  border-bottom: 1px solid #dbe8f4;
  color: var(--ink);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.8rem max(1rem, calc((100vw - 1320px) / 2 + 1rem));
}

.impersonation-banner-content {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  min-width: 0;
}

.impersonation-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  color: var(--brand-blue);
  display: inline-flex;
  flex: 0 0 2.25rem;
  font-size: 1.15rem;
  height: 2.25rem;
  justify-content: center;
  line-height: 1;
  width: 2.25rem;
}

.impersonation-banner .impersonation-icon {
  display: inline-flex;
}

.impersonation-banner strong,
.impersonation-banner-content > div > span {
  display: block;
}

.impersonation-banner strong {
  color: var(--brand-blue-dark);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.impersonation-banner-content span:not(.impersonation-icon) {
  color: #667085;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.35;
  margin-top: 0.12rem;
}

.impersonation-return {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cfe0ef;
  border-radius: 8px;
  color: var(--brand-blue-dark);
  display: inline-flex;
  flex: 0 0 auto;
  font-weight: 800;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.52rem 0.85rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.impersonation-return:hover {
  background: #eef7fc;
  border-color: #9cc6df;
  color: var(--brand-blue);
  text-decoration: none;
}

.impersonation-return .ti {
  color: var(--brand-orange);
  font-size: 1rem;
}

@media (max-width: 767.98px) {
  .impersonation-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .impersonation-return {
    justify-content: center;
    width: 100%;
  }
}

/* Marketing one-page */
.marketing-body {
  background: #ffffff;
  color: #202833;
  margin-bottom: 0;
  overflow-x: hidden;
}

.marketing-body *,
.marketing-body *::before,
.marketing-body *::after {
  box-sizing: border-box;
}

.marketing-container {
  margin-inline: auto;
  max-width: 1180px;
  padding-inline: 1.25rem;
  width: 100%;
}

.marketing-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #dce6ef;
  position: sticky;
  top: 0;
  z-index: 30;
}

.marketing-header-inner {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  min-height: 5rem;
}

.marketing-brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 10rem;
}

.marketing-brand img {
  display: block;
  height: 4.1rem;
  object-fit: contain;
  width: auto;
}

.marketing-nav {
  align-items: center;
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-inline: auto;
}

.marketing-nav a,
.marketing-footer-links a {
  border-radius: 8px;
  color: #556171;
  font-weight: 750;
  padding: 0.55rem 0.7rem;
}

.marketing-nav a:hover,
.marketing-footer-links a:hover {
  background: #edf6fb;
  color: var(--brand-blue-dark);
  text-decoration: none;
}

.marketing-header-actions,
.marketing-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.marketing-header-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.marketing-primary-button,
.marketing-secondary-button,
.marketing-link-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 850;
  gap: 0.45rem;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.marketing-primary-button {
  background: var(--brand-blue);
  border: 1px solid var(--brand-blue);
  color: #ffffff;
}

.marketing-primary-button:hover {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.marketing-secondary-button,
.marketing-link-button {
  background: #ffffff;
  border: 1px solid #cfdde9;
  color: var(--brand-blue-dark);
}

.marketing-secondary-button:hover,
.marketing-link-button:hover {
  background: #eef7fc;
  border-color: #9fc6dc;
  color: var(--brand-blue);
  text-decoration: none;
}

.marketing-hero {
  background-color: #f5f9fc;
  min-height: clamp(640px, calc(100vh - 5rem), 860px);
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  position: relative;
}

.marketing-hero::before {
  background-image: url("/img/tiklaode-logo-transparent.png");
  background-position: center 2.5rem;
  background-repeat: no-repeat;
  background-size: min(46rem, 88vw) auto;
  content: "";
  inset: 0;
  opacity: 0.055;
  pointer-events: none;
  position: absolute;
}

.marketing-hero > .marketing-container {
  position: relative;
  z-index: 1;
}

.marketing-hero-content {
  margin-inline: auto;
  max-width: 58rem;
  text-align: center;
}

.marketing-eyebrow {
  color: var(--brand-orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.marketing-hero h1 {
  color: var(--brand-blue-dark);
  font-size: 5rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
}

.marketing-hero-slogan {
  color: var(--brand-blue);
  font-size: 1.55rem;
  font-weight: 850;
  margin: 1rem 0 0;
}

.marketing-hero-copy {
  color: #52606f;
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 1.1rem auto 0;
  max-width: 48rem;
}

.marketing-hero-actions {
  justify-content: center;
  margin-top: 1.6rem;
}

.marketing-hero-metrics {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.1rem auto 0;
  max-width: 48rem;
}

.marketing-hero-metrics div {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #d8e6f0;
  border-radius: 8px;
  padding: 0.9rem;
}

.marketing-hero-metrics dt,
.marketing-hero-metrics dd {
  margin: 0;
}

.marketing-hero-metrics dt {
  color: var(--brand-blue-dark);
  font-size: 0.95rem;
  font-weight: 900;
}

.marketing-hero-metrics dd {
  color: #687587;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.marketing-product-stage {
  margin: 3.25rem auto 0;
  max-width: 62rem;
  position: relative;
}

.marketing-browser-frame {
  background: #ffffff;
  border: 1px solid #cfdde9;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 58, 99, 0.16);
  overflow: hidden;
}

.marketing-browser-top {
  align-items: center;
  background: #eef4f8;
  border-bottom: 1px solid #d7e3ed;
  display: flex;
  gap: 0.48rem;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
}

.marketing-browser-top span {
  background: #9fb0c2;
  border-radius: 999px;
  display: block;
  height: 0.65rem;
  width: 0.65rem;
}

.marketing-browser-top span:first-child {
  background: var(--brand-orange);
}

.marketing-browser-top strong {
  color: #647184;
  font-size: 0.78rem;
  font-weight: 800;
  margin-left: 0.45rem;
}

.marketing-dashboard-preview {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  min-height: 24rem;
}

.marketing-dashboard-preview aside {
  background: #f8fbfd;
  border-right: 1px solid #dce6ef;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem;
}

.marketing-dashboard-preview aside img {
  height: 4rem;
  object-fit: contain;
  object-position: left center;
  width: 8.5rem;
}

.marketing-dashboard-preview aside span {
  border-radius: 8px;
  color: #5d6a79;
  font-size: 0.86rem;
  font-weight: 850;
  padding: 0.68rem 0.75rem;
}

.marketing-dashboard-preview aside span.is-active {
  background: #e5f3fb;
  color: var(--brand-blue-dark);
}

.marketing-dashboard-preview section {
  background: #ffffff;
  padding: 1.35rem;
}

.marketing-preview-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.marketing-preview-heading span {
  color: var(--brand-blue);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marketing-preview-heading strong {
  color: #667085;
  font-size: 0.9rem;
}

.marketing-preview-amount {
  color: var(--brand-blue-dark);
  font-size: 2.4rem;
  font-weight: 950;
  line-height: 1.1;
  margin-top: 0.6rem;
}

.marketing-preview-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.1rem;
}

.marketing-preview-grid div {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  min-height: 5.4rem;
  padding: 0.85rem;
}

.marketing-preview-grid span,
.marketing-preview-list span {
  color: #667085;
  display: block;
  font-weight: 750;
}

.marketing-preview-grid strong {
  color: var(--brand-blue-dark);
  display: block;
  font-size: 1.55rem;
  margin-top: 0.35rem;
}

.marketing-preview-list {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
}

.marketing-preview-list i {
  background: var(--brand-orange);
  border-radius: 999px;
  display: inline-block;
  height: 0.55rem;
  margin-right: 0.45rem;
  width: 0.55rem;
}

.marketing-payment-mini {
  background: #ffffff;
  border: 1px solid #cfdde9;
  border-radius: 8px;
  bottom: -2.1rem;
  box-shadow: 0 18px 42px rgba(7, 58, 99, 0.16);
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  position: absolute;
  right: 1.5rem;
  width: 16.5rem;
}

.marketing-payment-mini strong,
.marketing-payment-mini b {
  color: var(--brand-blue-dark);
}

.marketing-payment-mini span:not(.payment) {
  color: #667085;
  font-size: 0.86rem;
  font-weight: 750;
}

.marketing-payment-mini b {
  font-size: 1.45rem;
  margin-top: 0.25rem;
}

.marketing-payment-mini div,
.marketing-payment-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.marketing-section {
  padding: 5.2rem 0;
}

.marketing-section-soft {
  background:
    linear-gradient(180deg, #f7fafc 0%, #eef6fb 100%);
}

.marketing-section-heading {
  margin-bottom: 2rem;
  max-width: 45rem;
}

.marketing-section-heading h2,
.marketing-security-layout h2,
.marketing-final-cta h2 {
  color: var(--brand-blue-dark);
  font-size: 2.55rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.12;
  margin: 0;
  overflow-wrap: anywhere;
}

.marketing-section-heading p:not(.marketing-eyebrow),
.marketing-security-layout p,
.marketing-final-cta p {
  color: #5f6d7d;
  font-size: 1.02rem;
  line-height: 1.75;
  margin: 0.85rem 0 0;
}

.marketing-feature-grid,
.marketing-faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-feature-grid article,
.marketing-faq-grid article,
.marketing-integration-grid article,
.marketing-integration-card {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  padding: 1.25rem;
}

.marketing-feature-grid article > span {
  align-items: center;
  background: #fff3e8;
  border-radius: 8px;
  color: var(--brand-orange);
  display: inline-flex;
  font-size: 1.4rem;
  height: 2.65rem;
  justify-content: center;
  width: 2.65rem;
}

.marketing-feature-grid h3,
.marketing-faq-grid h3,
.marketing-integration-grid h3 {
  color: var(--brand-blue-dark);
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 1rem 0 0;
  overflow-wrap: anywhere;
}

.marketing-feature-grid p,
.marketing-faq-grid p,
.marketing-integration-grid p {
  color: #5f6d7d;
  font-weight: 650;
  line-height: 1.65;
  margin: 0.65rem 0 0;
}

.marketing-flow-layout {
  align-items: start;
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
}

.marketing-flow-layout .marketing-section-heading {
  margin-bottom: 0;
  position: sticky;
  top: 7rem;
}

.marketing-flow-summary {
  background: #ffffff;
  border: 1px solid #d8e6f0;
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(7, 58, 99, 0.08);
  display: grid;
  gap: 0.65rem;
  margin-top: 1.5rem;
  padding: 1rem;
}

.marketing-flow-summary span {
  align-items: center;
  color: #536173;
  display: flex;
  font-weight: 800;
  gap: 0.7rem;
}

.marketing-flow-summary b {
  align-items: center;
  background: #fff3e8;
  border-radius: 8px;
  color: var(--brand-orange);
  display: inline-flex;
  flex: 0 0 2rem;
  height: 2rem;
  justify-content: center;
  width: 2rem;
}

.marketing-flow-list {
  counter-reset: flow;
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.marketing-flow-list li {
  background: #ffffff;
  border: 1px solid #dce6ef;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(7, 58, 99, 0.07);
  display: grid;
  gap: 1rem;
  grid-template-columns: 4rem minmax(0, 1fr);
  overflow: hidden;
  padding: 1.15rem;
  position: relative;
}

.marketing-flow-list li::before {
  background: var(--brand-orange);
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 0.25rem;
}

.marketing-flow-list span {
  align-items: center;
  background: linear-gradient(135deg, var(--brand-blue), #0f7fb8);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 106, 166, 0.18);
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 3.1rem;
  justify-content: center;
  margin-left: 0.25rem;
  width: 3.1rem;
}

.marketing-flow-list small {
  color: var(--brand-orange);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.marketing-flow-list strong {
  color: var(--brand-blue-dark);
  display: block;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.marketing-flow-list p {
  color: #667085;
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

.marketing-flow-list em {
  background: #eef7fc;
  border-radius: 8px;
  color: var(--brand-blue-dark);
  display: inline-block;
  font-size: 0.83rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 0.7rem;
  padding: 0.45rem 0.6rem;
}

.marketing-integration-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.marketing-integration-grid h3 {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-top: 0;
}

.marketing-integration-grid h3 span {
  color: var(--brand-orange);
  font-size: 1.35rem;
}

.marketing-integration-grid ul {
  color: #516071;
  display: grid;
  font-weight: 750;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.marketing-integration-showcase {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.marketing-integration-card {
  box-shadow: 0 16px 40px rgba(7, 58, 99, 0.06);
  display: flex;
  flex-direction: column;
  grid-column: span 2;
  min-height: 100%;
}

.marketing-integration-card.is-featured {
  background:
    linear-gradient(135deg, rgba(0, 106, 166, 0.06), rgba(244, 123, 32, 0.06)),
    #ffffff;
  grid-column: span 3;
}

.marketing-integration-card-head {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
}

.marketing-integration-card-head > span {
  align-items: center;
  background: #fff3e8;
  border-radius: 8px;
  color: var(--brand-orange);
  display: inline-flex;
  flex: 0 0 2.85rem;
  font-size: 1.5rem;
  height: 2.85rem;
  justify-content: center;
  width: 2.85rem;
}

.marketing-integration-card-head small {
  color: var(--brand-orange);
  display: block;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.marketing-integration-card h3 {
  color: var(--brand-blue-dark);
  font-size: 1.2rem;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.marketing-integration-card p {
  color: #5f6d7d;
  font-weight: 700;
  line-height: 1.65;
  margin: 1rem 0 0;
}

.marketing-integration-card ul {
  border-top: 1px solid #dce6ef;
  color: #516071;
  display: grid;
  font-weight: 800;
  gap: 0.45rem;
  margin: 1rem 0 0;
  padding: 1rem 0 0 1.1rem;
}

.marketing-provider-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.marketing-provider-cloud span {
  background: #eef7fc;
  border: 1px solid #cfe4f1;
  border-radius: 999px;
  color: var(--brand-blue-dark);
  font-size: 0.84rem;
  font-weight: 900;
  padding: 0.42rem 0.7rem;
}

.marketing-provider-cloud span:nth-child(3n + 2) {
  background: #fff6ef;
  border-color: #f7d7bd;
  color: #9d4d12;
}

.marketing-provider-cloud.is-compact span {
  font-size: 0.8rem;
  padding: 0.35rem 0.58rem;
}

.marketing-payment-strip {
  border: 1px solid #dce6ef;
  border-radius: 8px;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 1rem;
}

.marketing-payment-strip strong {
  color: var(--brand-blue-dark);
  flex-basis: 100%;
  font-size: 0.88rem;
  font-weight: 900;
  text-align: center;
}

.marketing-payment-strip .payment,
.marketing-payment-mini .payment {
  font-size: 2.1rem;
}

.marketing-security-band {
  background: #102a43;
  color: #ffffff;
}

.marketing-security-layout {
  align-items: center;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.8fr);
}

.marketing-security-layout h2,
.marketing-security-layout p {
  color: #ffffff;
}

.marketing-security-layout .marketing-eyebrow {
  color: #ffb36c;
}

.marketing-security-list {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 1rem;
}

.marketing-security-list li {
  align-items: center;
  color: #eef6fc;
  display: flex;
  font-weight: 800;
  gap: 0.7rem;
}

.marketing-security-list span {
  color: #ffb36c;
  font-size: 1.25rem;
}

.marketing-final-cta {
  background: #eef6fb;
  padding: 4.4rem 0;
  text-align: center;
}

.marketing-final-cta .marketing-container {
  max-width: 50rem;
}

.marketing-final-cta .marketing-hero-actions {
  margin-top: 1.4rem;
}

.marketing-footer {
  background: #ffffff;
  border-top: 1px solid #dce6ef;
  color: #647184;
}

.marketing-footer-inner {
  align-items: center;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 8rem;
}

.marketing-footer img {
  display: block;
  height: 3.3rem;
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.marketing-footer p,
.marketing-footer span {
  font-weight: 750;
  margin: 0;
}

.marketing-footer-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: center;
}

.marketing-footer-inner > span {
  justify-self: end;
  text-align: right;
}

@media (max-width: 991.98px) {
  .marketing-header-inner {
    min-height: auto;
    padding-block: 0.65rem;
  }

  .marketing-nav {
    display: none;
  }

  .marketing-header-actions {
    margin-left: auto;
  }

  .marketing-hero {
    min-height: auto;
    padding-top: 3.75rem;
  }

  .marketing-hero h1 {
    font-size: 4rem;
  }

  .marketing-dashboard-preview {
    grid-template-columns: 1fr;
  }

  .marketing-dashboard-preview aside {
    border-bottom: 1px solid #dce6ef;
    border-right: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .marketing-dashboard-preview aside img {
    grid-column: 1 / -1;
  }

  .marketing-payment-mini {
    margin: 1rem auto 0;
    position: static;
    width: min(100%, 22rem);
  }

  .marketing-feature-grid,
  .marketing-integration-grid,
  .marketing-faq-grid,
  .marketing-flow-layout,
  .marketing-security-layout,
  .marketing-integration-showcase {
    grid-template-columns: 1fr;
  }

  .marketing-flow-layout .marketing-section-heading {
    position: static;
  }

  .marketing-integration-card,
  .marketing-integration-card.is-featured {
    grid-column: auto;
  }

  .marketing-footer-inner {
    grid-template-columns: 1fr;
    padding-block: 1.5rem;
    text-align: center;
  }

  .marketing-footer img {
    margin-inline: auto;
    object-position: center;
  }

  .marketing-footer-inner > span {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .marketing-container {
    padding-inline: 1rem;
  }

  .marketing-brand {
    min-width: 0;
  }

  .marketing-brand img {
    height: 3.35rem;
  }

  .marketing-header-actions {
    gap: 0.45rem;
  }

  .marketing-header-actions .marketing-link-button {
    display: none;
  }

  .marketing-primary-button,
  .marketing-secondary-button,
  .marketing-link-button {
    min-height: 2.55rem;
    padding: 0.62rem 0.78rem;
  }

  .marketing-hero {
    padding: 3rem 0 3.5rem;
  }

  .marketing-hero h1 {
    font-size: 3rem;
  }

  .marketing-hero-slogan {
    font-size: 1.22rem;
  }

  .marketing-hero-copy {
    font-size: 1rem;
  }

  .marketing-hero-actions,
  .marketing-hero-actions a {
    width: 100%;
  }

  .marketing-hero-metrics,
  .marketing-preview-grid {
    grid-template-columns: 1fr;
  }

  .marketing-browser-top strong {
    overflow-wrap: anywhere;
  }

  .marketing-dashboard-preview aside {
    grid-template-columns: 1fr 1fr;
    padding: 0.9rem;
  }

  .marketing-dashboard-preview section {
    padding: 1rem;
  }

  .marketing-preview-heading {
    flex-direction: column;
  }

  .marketing-preview-amount {
    font-size: 2rem;
  }

  .marketing-section {
    padding: 3.5rem 0;
  }

  .marketing-section-heading h2,
  .marketing-security-layout h2,
  .marketing-final-cta h2 {
    font-size: 2rem;
  }

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

  .marketing-flow-list span {
    margin-left: 0;
  }

  .marketing-flow-list p {
    grid-column: auto;
  }

  .marketing-integration-card-head {
    align-items: flex-start;
  }

  .marketing-provider-cloud span {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 991.98px) {
  .provider-onboarding-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .provider-field-map {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .provider-deep-guide {
    padding: 16px;
  }

  .provider-onboarding-grid {
    grid-template-columns: 1fr;
  }

  .provider-onboarding-card {
    min-height: auto;
  }

  .surface-heading-row {
    flex-direction: column;
  }

  .subscription-current-card dl {
    grid-template-columns: 1fr;
  }
}
