:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --panel: #ffffff;
  --page: #ffffff;
  --dark: #1d1d1f;
  --accent: #0071e3;
  --soft: #f5f5f7;
  --green: #248a3d;
  --orange: #b45f06;
  --red: #c1272d;
  --glass-bg: linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(245, 245, 247, 0.68));
  --glass-strong: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(245, 245, 247, 0.78));
  --glass-dark: linear-gradient(135deg, rgba(29, 29, 31, 0.86), rgba(29, 29, 31, 0.62));
  --glass-border: rgba(210, 210, 215, 0.78);
  --glass-card-bg: rgba(255, 255, 255, 0.25);
  --glass-card-border: rgba(255, 255, 255, 0.3);
  --glass-card-radius: 30px;
  --glass-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  --hero-soft-gradient:
    radial-gradient(circle at 14% 18%, rgba(10, 132, 255, 0.16), transparent 34%),
    radial-gradient(circle at 84% 16%, rgba(191, 90, 242, 0.13), transparent 32%),
    radial-gradient(circle at 54% 92%, rgba(48, 209, 88, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 247, 255, 0.68));
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.06);
  --button-radius: 11px;
  --button-height: 40px;
  --button-height-lg: 46px;
  --button-font:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
  --button-primary-bg: linear-gradient(180deg, #0a84ff 0%, #0071e3 100%);
  --button-primary-bg-hover: linear-gradient(180deg, #168cff 0%, #0879ec 100%);
  --button-primary-bg-active: linear-gradient(180deg, #006edb 0%, #0062c6 100%);
  --button-primary-border: rgba(0, 81, 170, 0.34);
  --button-primary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.1);
  --button-secondary-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(242, 242, 247, 0.72));
  --button-secondary-bg-hover: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 247, 250, 0.82));
  --button-secondary-bg-active: linear-gradient(180deg, rgba(232, 232, 237, 0.9), rgba(246, 246, 248, 0.72));
  --button-secondary-border: rgba(60, 60, 67, 0.18);
  --button-secondary-color: #1d1d1f;
  --button-secondary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(0, 0, 0, 0.035),
    0 1px 2px rgba(0, 0, 0, 0.06);
  --button-ghost-color: #0071e3;
  --button-destructive-bg: linear-gradient(180deg, rgba(255, 69, 58, 0.1), rgba(255, 69, 58, 0.055));
  --button-destructive-bg-hover: linear-gradient(180deg, rgba(255, 69, 58, 0.14), rgba(255, 69, 58, 0.075));
  --button-destructive-bg-active: linear-gradient(180deg, rgba(255, 69, 58, 0.18), rgba(255, 69, 58, 0.1));
  --button-destructive-border: rgba(255, 69, 58, 0.24);
  --button-destructive-color: #c1272d;
  --button-focus-ring: rgba(0, 122, 255, 0.28);
  --button-disabled-opacity: 0.48;
}

:root[data-theme="dark"],
body[data-theme="dark"],
.theme-dark {
  --button-secondary-bg: linear-gradient(180deg, rgba(82, 82, 88, 0.72), rgba(58, 58, 62, 0.62));
  --button-secondary-bg-hover: linear-gradient(180deg, rgba(92, 92, 98, 0.78), rgba(68, 68, 72, 0.68));
  --button-secondary-bg-active: linear-gradient(180deg, rgba(52, 52, 56, 0.82), rgba(70, 70, 74, 0.64));
  --button-secondary-border: rgba(255, 255, 255, 0.18);
  --button-secondary-color: rgba(255, 255, 255, 0.92);
  --button-secondary-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(0, 0, 0, 0.28);
  --button-ghost-color: #64d2ff;
  --button-destructive-bg: linear-gradient(180deg, rgba(255, 105, 97, 0.18), rgba(255, 105, 97, 0.1));
  --button-destructive-bg-hover: linear-gradient(180deg, rgba(255, 105, 97, 0.24), rgba(255, 105, 97, 0.14));
  --button-destructive-bg-active: linear-gradient(180deg, rgba(255, 105, 97, 0.3), rgba(255, 105, 97, 0.18));
  --button-destructive-border: rgba(255, 105, 97, 0.32);
  --button-destructive-color: #ff6961;
  --button-focus-ring: rgba(100, 210, 255, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  overflow-x: hidden;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue",
    Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.glass-surface,
.site-nav,
.payment-module,
.create-panel,
.orders-panel,
.metric,
.filter-chip,
.module-tabs,
.tab.active,
input,
textarea,
select,
.table-frame,
.approval-card,
.status-card,
.panel-promo,
.feature-copy,
.flow-step,
.flow-visual,
.pay-page-card {
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 28px;
}

.hero-section {
  display: grid;
  gap: 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  justify-self: center;
  margin-inline: auto;
  padding: 40px 20px 32px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(96px, 7vw, 140px);
  width: fit-content;
  max-width: min(1200px, 100%);
  margin: 0 auto;
}

.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-shrink: 0;
  width: auto;
  height: auto;
  overflow: hidden;
  border-radius: 0;
  text-decoration: none;
  background: transparent;
}

.logo-link img {
  display: block;
  width: auto;
  height: 92px;
  object-fit: contain;
  filter: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(56px, 4vw, 72px);
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  white-space: nowrap;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  height: auto;
  color: #424245;
  border-radius: 0;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.header-spacer {
  min-height: 1px;
}

.opening-statement {
  display: grid;
  gap: 24px;
  justify-self: center;
  place-items: center;
  width: min(100%, 1180px);
  margin-inline: auto;
  padding: clamp(52px, 7vw, 92px) 20px clamp(46px, 6vw, 72px);
  text-align: center;
  background: transparent;
}

.opening-statement p {
  display: block;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  font-weight: 700;
}

.opening-statement h1 {
  display: block;
  justify-self: center;
  width: min(100%, 1140px);
  max-width: 1140px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(46px, 5vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
  white-space: nowrap;
}

.opening-statement h1 span {
  display: inline;
}

.opening-statement small {
  display: block;
  justify-self: center;
  width: min(100%, 760px);
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
h5,
p {
  margin: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-card {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  align-items: start;
  position: relative;
  overflow: visible;
  min-height: 780px;
  background: #fff;
  border: 1px solid rgba(210, 210, 215, 0.8);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.info-page {
  display: grid;
  gap: 34px;
  min-height: calc(100vh - 40px);
}

.info-card {
  display: grid;
  gap: 22px;
  padding: clamp(32px, 6vw, 72px);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    var(--shadow);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

.info-card h1 {
  max-width: 760px;
}

.info-card > p {
  max-width: 760px;
  color: #5f6270;
  font-size: 17px;
  line-height: 1.9;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 12px;
}

.info-grid article {
  display: grid;
  gap: 12px;
  min-height: 176px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 34px rgba(0, 0, 0, 0.045);
}

.info-grid span {
  display: inline-grid;
  width: fit-content;
  min-width: 42px;
  height: 34px;
  place-items: center;
  padding: 0 12px;
  color: #fff;
  background: var(--glass-dark);
  border-radius: 8px;
  font-weight: 900;
}

.info-grid h2 {
  font-size: 20px;
}

.info-grid p {
  color: #666a75;
  font-size: 14px;
  line-height: 1.7;
}

.api-card {
  justify-items: start;
}

.api-card h1,
.api-card > p {
  max-width: 820px;
}

.api-visual {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(90px, 0.38fr) minmax(220px, 0.9fr) minmax(90px, 0.38fr) minmax(180px, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 24px);
  width: 100%;
  min-height: 300px;
  margin-top: 10px;
  padding: clamp(22px, 4vw, 42px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(245, 245, 247, 0.36));
  border: 1px solid rgba(210, 210, 215, 0.7);
  border-radius: 32px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 18px 48px rgba(0, 0, 0, 0.045);
}

.api-stack {
  display: grid;
  gap: 12px;
}

.api-stack span {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.api-source-stack span::before,
.api-result-stack span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.api-result-stack span::before {
  background: #34c759;
}

.api-route {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 90px;
}

.api-route::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0), rgba(0, 113, 227, 0.62), rgba(0, 113, 227, 0));
  transform: translateY(-50%);
}

.api-route span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  padding: 0 12px;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.api-hub {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 210px;
  padding: 26px 20px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 50px rgba(0, 113, 227, 0.08);
}

.api-hub img {
  width: 148px;
  height: 72px;
  object-fit: contain;
}

.api-hub strong {
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
}

.api-hub span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.api-capability-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.api-capability-grid article {
  min-height: 210px;
}

@media (max-width: 1180px) {
  .api-visual {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

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

  .api-route {
    min-height: 56px;
  }

  .api-route::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 2px;
    height: auto;
    transform: translateX(-50%);
  }

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

@media (max-width: 767px) {
  .api-card {
    justify-items: stretch;
  }

  .api-visual {
    min-height: auto;
    padding: 18px;
    border-radius: 24px;
  }

  .api-stack,
  .api-capability-grid {
    grid-template-columns: 1fr;
  }

  .api-hub {
    min-height: 176px;
    padding: 22px 16px;
    border-radius: 22px;
  }

  .api-hub img {
    width: 132px;
    height: 64px;
  }
}

.sidebar {
  grid-column: 1;
  position: relative;
  top: auto;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: auto;
  height: auto;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  margin: 0;
  padding: 24px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(250, 250, 252, 0.38));
  border: 0;
  border-right: 1px solid rgba(210, 210, 215, 0.58);
  border-radius: 8px 0 0 8px;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.72);
  z-index: 5;
}

.dashboard-card.sidebar-fixed .sidebar {
  position: fixed;
  top: 24px;
  left: var(--sidebar-left, 28px);
  width: var(--sidebar-width, 218px);
}

.dashboard-card.sidebar-bottom .sidebar {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width, 218px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1d1d1f;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.brand-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #0b63ce;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(0, 113, 227, 0.1);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  font-size: 13px;
  font-weight: 600;
}

.nav-groups {
  display: grid;
  position: relative;
  --nav-cursor-top: 0px;
  --nav-cursor-height: 34px;
  --nav-cursor-opacity: 0;
  gap: 16px;
  margin-top: 4px;
  overflow: visible;
}

.nav-cursor {
  position: absolute;
  left: 0;
  top: calc(var(--nav-cursor-top) - 7px);
  width: 4px;
  height: max(var(--nav-cursor-height), 50px);
  opacity: var(--nav-cursor-opacity);
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.75), rgba(90, 200, 250, 0.45));
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(0, 122, 255, 0.22);
  pointer-events: none;
  transition:
    top 260ms cubic-bezier(0.2, 0, 0.2, 1),
    height 260ms cubic-bezier(0.2, 0, 0.2, 1),
    opacity 160ms ease;
  z-index: 0;
}

.nav-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  position: relative;
  border-radius: 22px;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
  z-index: 1;
}

.nav-group.active {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-top-color: rgba(255, 255, 255, 0.85);
  border-radius: 24px;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transform: translateY(-1px);
}

.nav-group.active:hover {
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.nav-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 34px;
  color: #3f4248;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}

.nav-title.active {
  color: #1d1d1f;
  font-weight: 650;
}

.nav-link {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 0 10px 0 42px;
  color: #7a7d86;
  border-radius: 8px;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  transition:
    color 180ms ease,
    background 180ms ease;
}

.nav-link:hover {
  color: #4f535b;
  background: rgba(255, 255, 255, 0.34);
}

.nav-link.active {
  color: #0a63ce;
  background: rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.66),
    0 10px 24px rgba(0, 113, 227, 0.06);
  font-weight: 500;
}

.nav-link.active::before {
  display: none;
}

.nav-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #5f636d;
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 8px 20px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(12px) saturate(145%);
  -webkit-backdrop-filter: blur(12px) saturate(145%);
  font-size: 12.5px;
  font-weight: 600;
}

.nav-icon.active,
.nav-link.active .nav-icon {
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 122, 255, 0.95), rgba(0, 122, 255, 0.78));
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 8px 20px rgba(0, 122, 255, 0.22);
}

.nav-dot {
  width: 5px;
  height: 5px;
  margin-left: 0;
  background: #c7c7cc;
  border-radius: 50%;
}

.nav-link.active .nav-dot {
  background: var(--accent);
  transform: scale(1.18);
}

.dashboard-main {
  grid-column: 2;
  min-width: 0;
  background: #fff;
}

.dashboard-content {
  display: grid;
  gap: 30px;
  padding: 42px;
}

.section-title,
.module-heading,
.orders-top,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.section-title h2,
.module-heading h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 600;
}

.filter-chip span {
  width: 18px;
  height: 12px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 2px / 18px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 10px / 18px 2px no-repeat;
}

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

.metric {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 14px;
  min-height: 148px;
  padding: 22px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 48px rgba(0, 0, 0, 0.07);
}

.metric.mint {
  --metric-accent: #34c759;
}

.metric.blue {
  --metric-accent: #0071e3;
}

.metric.peach {
  --metric-accent: #ff9f0a;
}

.metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--metric-accent);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  font-weight: 700;
}

.metric-label {
  position: static;
  align-self: center;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.metric strong {
  display: block;
  grid-column: 1 / -1;
  margin-top: 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0;
}

.metric small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.metric i {
  display: none;
}

.trend-metric {
  display: grid;
  grid-template-columns: minmax(128px, 0.72fr) minmax(180px, 1fr);
  gap: 18px;
  min-height: 184px;
  background:
    linear-gradient(135deg, rgba(29, 29, 31, 0.88), rgba(29, 29, 31, 0.68)),
    rgba(29, 29, 31, 0.82);
  color: #fff;
}

.trend-copy {
  display: grid;
  align-content: center;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
}

.trend-metric .metric-icon {
  color: #31d2ff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.trend-metric .metric-label,
.trend-metric strong {
  color: #fff;
}

.trend-metric small {
  color: rgba(255, 255, 255, 0.7);
}

.trend-visual {
  position: relative;
  display: grid;
  min-height: 136px;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 44px 100%,
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 36px,
    rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.trend-visual svg {
  width: min(100%, 240px);
  height: 128px;
  overflow: visible;
}

.trend-area {
  fill: rgba(255, 255, 255, 0.18);
}

.trend-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 7;
  filter: drop-shadow(0 2px 3px rgba(255, 255, 255, 0.34));
}

.trend-point {
  fill: #19c7ff;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 4;
  filter: drop-shadow(0 0 13px rgba(25, 199, 255, 0.86));
}

.trend-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 70%;
  width: 3px;
  background: #19c7ff;
  box-shadow: 0 0 16px rgba(25, 199, 255, 0.9);
}

.payment-module {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 46px rgba(0, 0, 0, 0.045);
}

.module-heading {
  margin-bottom: 22px;
}

.module-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: rgba(232, 232, 237, 0.64);
  border: 1px solid rgba(60, 60, 67, 0.1);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(0, 0, 0, 0.025);
}

.tab {
  display: grid;
  min-width: 112px;
  height: 36px;
  place-items: center;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
  user-select: none;
}

.tab.active {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(60, 60, 67, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(0, 0, 0, 0.035),
    0 1px 2px rgba(0, 0, 0, 0.08);
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.create-panel,
.orders-panel {
  min-width: 0;
  scroll-margin-top: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 14px 34px rgba(0, 0, 0, 0.04);
}

.feature-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  margin-bottom: 22px;
  padding: clamp(34px, 4.6vw, 62px);
  background: #fff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 50px rgba(0, 0, 0, 0.045);
}

.feature-copy p {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.feature-copy h3 {
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

.collection-message h3 {
  line-height: 1.16;
}

.feature-copy > span,
.feature-copy-lines {
  max-width: 960px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
}

.feature-copy-lines {
  display: grid;
  gap: 2px;
}

.feature-copy-lines span {
  display: block;
  white-space: nowrap;
}

.panel-promo {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: rgba(245, 245, 247, 0.78);
  border: 1px solid rgba(210, 210, 215, 0.68);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 12px 30px rgba(0, 0, 0, 0.045);
}

.panel-promo strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}

.panel-promo span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.payout-promo span {
  display: block;
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 700;
  line-height: 1.28;
}

.panel-head,
.orders-top {
  margin-bottom: 18px;
}

.panel-head h3,
.orders-top h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.panel-head span,
.orders-top span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

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

.payout-form {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.72fr;
  gap: 16px;
}

.collection-form label,
.payout-form label,
.filters label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.payout-form em,
.transfer-type em {
  margin-right: 4px;
  color: #f04444;
  font-style: normal;
}

.payout-form small {
  justify-self: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.span-2 {
  grid-column: span 2;
}

.wide {
  grid-column: 1 / -1;
}

.amount-field {
  grid-column: 1 / span 1;
}

.transfer-type {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--muted);
  border: 0;
  font-size: 12px;
  font-weight: 600;
}

.transfer-type legend {
  grid-column: 1 / -1;
  float: none;
  margin-right: 0;
}

.transfer-type label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 10px 24px rgba(0, 0, 0, 0.035);
}

.transfer-type label:has(input:checked) {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border-color: rgba(0, 113, 227, 0.28);
}

.transfer-type input {
  appearance: none;
  width: 18px;
  height: 18px;
  padding: 0;
  background:
    radial-gradient(circle, var(--accent) 0 42%, transparent 46%),
    rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(0, 113, 227, 0.3);
  border-radius: 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 4px 12px rgba(0, 113, 227, 0.12);
  transform: scale(0.74);
  opacity: 0.35;
}

.transfer-type input:checked {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(0, 113, 227, 0.62);
}

.transfer-logo {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.transfer-icon {
  display: block;
  flex: 0 0 auto;
  width: 30px;
  height: 22px;
}

.card-icon {
  position: relative;
  background:
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) 6px 12px / 11px 2px no-repeat,
    linear-gradient(135deg, rgba(0, 113, 227, 0.92), rgba(0, 113, 227, 0.56));
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 6px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 8px 16px rgba(0, 113, 227, 0.12);
}

.card-icon::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: 8px;
  height: 5px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
}

.public-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.96)) 6px 12px / 11px 2px no-repeat,
    linear-gradient(135deg, rgba(31, 31, 35, 0.92), rgba(31, 31, 35, 0.58));
  border-color: rgba(31, 31, 35, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 8px 16px rgba(31, 31, 35, 0.1);
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  outline: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 24px rgba(0, 0, 0, 0.035);
}

input,
select {
  height: 44px;
  padding: 0 14px;
}

textarea {
  min-height: 94px;
  resize: vertical;
  padding: 13px 14px;
  line-height: 1.55;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.blue-btn,
.approve-btn,
.reject-btn,
.ghost-btn,
.destructive-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--button-height-lg);
  min-width: 108px;
  padding: 0 18px;
  color: var(--button-secondary-color);
  background: var(--button-secondary-bg);
  border: 1px solid var(--button-secondary-border);
  border-radius: var(--button-radius);
  appearance: none;
  font-family: var(--button-font);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  user-select: none;
  box-shadow: var(--button-secondary-shadow);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition:
    color 140ms ease,
    background 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    opacity 140ms ease,
    transform 120ms ease;
}

.primary-btn,
.blue-btn,
.approve-btn {
  color: #fff;
  background: var(--button-primary-bg);
  border-color: var(--button-primary-border);
  box-shadow: var(--button-primary-shadow);
  --button-spinner-color: rgba(255, 255, 255, 0.82);
}

.secondary-btn {
  --button-spinner-color: rgba(29, 29, 31, 0.48);
}

.ghost-btn {
  min-width: auto;
  color: var(--button-ghost-color);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  --button-spinner-color: rgba(0, 113, 227, 0.58);
}

.reject-btn,
.destructive-btn {
  color: var(--button-destructive-color);
  background: var(--button-destructive-bg);
  border-color: var(--button-destructive-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(193, 39, 45, 0.035),
    0 1px 2px rgba(193, 39, 45, 0.06);
  --button-spinner-color: rgba(193, 39, 45, 0.58);
}

.primary-btn:hover,
.blue-btn:hover,
.approve-btn:hover {
  background: var(--button-primary-bg-hover);
}

.secondary-btn:hover {
  background: var(--button-secondary-bg-hover);
}

.ghost-btn:hover {
  color: #005ecb;
  background: rgba(0, 113, 227, 0.06);
}

.reject-btn:hover,
.destructive-btn:hover {
  background: var(--button-destructive-bg-hover);
}

.primary-btn:active,
.secondary-btn:active,
.blue-btn:active,
.approve-btn:active,
.reject-btn:active,
.ghost-btn:active,
.destructive-btn:active {
  transform: translateY(1px);
}

.primary-btn:active,
.blue-btn:active,
.approve-btn:active {
  background: var(--button-primary-bg-active);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.16),
    0 1px 1px rgba(0, 0, 0, 0.05);
}

.secondary-btn:active {
  background: var(--button-secondary-bg-active);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.08),
    0 1px 1px rgba(0, 0, 0, 0.04);
}

.ghost-btn:active {
  background: rgba(0, 113, 227, 0.1);
}

.reject-btn:active,
.destructive-btn:active {
  background: var(--button-destructive-bg-active);
  box-shadow:
    inset 0 1px 2px rgba(193, 39, 45, 0.1),
    0 1px 1px rgba(193, 39, 45, 0.04);
}

.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.blue-btn:focus-visible,
.approve-btn:focus-visible,
.reject-btn:focus-visible,
.ghost-btn:focus-visible,
.destructive-btn:focus-visible {
  outline: 3px solid var(--button-focus-ring);
  outline-offset: 2px;
}

.primary-btn:disabled,
.secondary-btn:disabled,
.blue-btn:disabled,
.approve-btn:disabled,
.reject-btn:disabled,
.ghost-btn:disabled,
.destructive-btn:disabled,
.primary-btn[aria-disabled="true"],
.secondary-btn[aria-disabled="true"],
.blue-btn[aria-disabled="true"],
.approve-btn[aria-disabled="true"],
.reject-btn[aria-disabled="true"],
.ghost-btn[aria-disabled="true"],
.destructive-btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: var(--button-disabled-opacity);
  pointer-events: none;
  transform: none;
}

.primary-btn.is-loading,
.secondary-btn.is-loading,
.blue-btn.is-loading,
.approve-btn.is-loading,
.reject-btn.is-loading,
.ghost-btn.is-loading,
.destructive-btn.is-loading,
.primary-btn[aria-busy="true"],
.secondary-btn[aria-busy="true"],
.blue-btn[aria-busy="true"],
.approve-btn[aria-busy="true"],
.reject-btn[aria-busy="true"],
.ghost-btn[aria-busy="true"],
.destructive-btn[aria-busy="true"] {
  color: transparent;
  pointer-events: none;
}

.primary-btn.is-loading::after,
.secondary-btn.is-loading::after,
.blue-btn.is-loading::after,
.approve-btn.is-loading::after,
.reject-btn.is-loading::after,
.ghost-btn.is-loading::after,
.destructive-btn.is-loading::after,
.primary-btn[aria-busy="true"]::after,
.secondary-btn[aria-busy="true"]::after,
.blue-btn[aria-busy="true"]::after,
.approve-btn[aria-busy="true"]::after,
.reject-btn[aria-busy="true"]::after,
.ghost-btn[aria-busy="true"]::after,
.destructive-btn[aria-busy="true"]::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 2px solid var(--button-spinner-color, rgba(29, 29, 31, 0.46));
  border-top-color: transparent;
  border-radius: 50%;
  animation: button-loading-spin 760ms linear infinite;
}

@keyframes button-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.payout-actions {
  justify-content: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.collection-flow {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.flow-head h4 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.flow-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  background: #f5f5f7;
  border-radius: 22px;
}

.flow-step {
  --flow-accent: var(--accent);
  --flow-soft: rgba(0, 113, 227, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  min-height: 405px;
  overflow: hidden;
  padding: 24px 24px 26px;
  background: #fff;
  border: 1px solid rgba(29, 29, 31, 0.045);
  border-radius: 24px;
  text-align: left;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2px rgba(0, 0, 0, 0.025);
}

.flow-step:nth-child(1) {
  --flow-accent: #0071e3;
  --flow-soft: rgba(0, 113, 227, 0.1);
}

.flow-step:nth-child(2) {
  --flow-accent: #ff7a00;
  --flow-soft: rgba(255, 122, 0, 0.1);
}

.flow-step:nth-child(3) {
  --flow-accent: #00a6b3;
  --flow-soft: rgba(0, 166, 179, 0.1);
}

.flow-step:nth-child(4) {
  --flow-accent: #8b5cf6;
  --flow-soft: rgba(139, 92, 246, 0.11);
}

.flow-step:not(:last-child)::after {
  content: none;
}

.flow-step:not(:last-child)::before {
  content: none;
}

.flow-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.flow-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--flow-accent);
}

.flow-icon svg {
  display: block;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.step-index {
  position: static;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted);
  background: #f5f5f7;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 999px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.86);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.flow-step h5 {
  max-width: 100%;
  margin-bottom: 14px;
  text-align: left;
  color: var(--ink);
  font-size: clamp(25px, 1.48vw, 29px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: keep-all;
}

.flow-step p {
  display: block;
  max-width: 100%;
  min-height: 62px;
  margin-bottom: 16px;
  text-align: left;
  color: var(--muted);
  font-size: clamp(15px, 0.92vw, 17px);
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.flow-step p span {
  display: inline;
  white-space: normal;
}

.flow-step p .flow-highlight {
  color: var(--flow-accent);
  font-weight: 700;
  white-space: nowrap;
}

.flow-extra {
  display: grid;
  width: 100%;
  min-height: 94px;
  margin-top: auto;
  margin-bottom: 38px;
  padding: 12px;
  align-items: center;
  background: #f5f5f7;
  border: 1px solid rgba(29, 29, 31, 0.06);
  border-radius: 20px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.order-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  text-align: left;
}

.order-detail strong {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.order-detail strong::before {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  background:
    linear-gradient(#fff, #fff) center / 10px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 12px no-repeat,
    var(--flow-accent);
  border-radius: 50%;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--flow-accent) 24%, transparent);
}

.order-detail span {
  display: grid;
  min-height: 34px;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 29, 31, 0.055);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.entry-detail {
  grid-template-columns: 1fr 84px;
  gap: 12px;
  align-items: stretch;
}

.link-card,
.qr-card {
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(29, 29, 31, 0.055);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
}

.link-card {
  align-content: center;
  gap: 8px;
}

.link-card i {
  position: relative;
  display: block;
  width: 58px;
  height: 22px;
  border: 3px solid var(--flow-accent);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.link-card i::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 50%;
  width: 44px;
  height: 8px;
  background: var(--ink);
  border-radius: 999px;
  transform: translateY(-50%);
}

.qr-card {
  min-height: 76px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(31, 31, 35, 0.16) 2px, transparent 2px) 0 0 / 15px 15px,
    linear-gradient(rgba(31, 31, 35, 0.16) 2px, transparent 2px) 0 0 / 15px 15px,
    #f8f8fa;
}

.wallet-detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  min-height: 94px;
}

.wallet-detail em {
  display: grid;
  grid-template-columns: 36px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(29, 29, 31, 0.055);
  border-radius: 14px;
  font-style: normal;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.flow-action {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 50%;
  font-size: 23px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.flow-visual {
  position: relative;
  display: grid;
  width: min(182px, 100%);
  flex: 0 0 142px;
  height: 142px;
  margin: 0 auto;
  place-items: center;
  background:
    radial-gradient(circle at 70% 22%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, #fff, var(--flow-soft));
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 20px 42px rgba(0, 0, 0, 0.055);
}

.order-visual span {
  width: 94px;
  height: 72px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.07);
}

.order-visual::before {
  content: "¥";
  position: absolute;
  top: 30px;
  right: 38px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--flow-accent);
  border-radius: 50%;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--flow-accent) 28%, transparent);
}

.order-visual i {
  position: absolute;
  left: calc(50% - 32px);
  width: 64px;
  height: 5px;
  background: #c7c7cc;
  border-radius: 999px;
}

.order-visual i:nth-of-type(1) {
  top: 59px;
}

.order-visual i:nth-of-type(2) {
  top: 76px;
  width: 48px;
}

.order-visual b {
  position: absolute;
  right: calc(50% - 48px);
  bottom: 27px;
  width: 38px;
  height: 20px;
  background: var(--flow-accent);
  border-radius: 8px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--flow-accent) 26%, transparent);
}

.share-visual span {
  width: 76px;
  height: 76px;
  background:
    linear-gradient(90deg, #d2d2d7 2px, transparent 2px) 0 0 / 16px 16px,
    linear-gradient(#d2d2d7 2px, transparent 2px) 0 0 / 16px 16px,
    #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow:
    0 0 0 1px #d2d2d7,
    0 14px 30px rgba(0, 0, 0, 0.06);
}

.share-visual i {
  position: absolute;
  right: 25px;
  top: 43px;
  width: 50px;
  height: 24px;
  border: 3px solid var(--flow-accent);
  border-left: 0;
  border-radius: 0 999px 999px 0;
}

.share-visual b {
  position: absolute;
  left: 27px;
  bottom: 27px;
  width: 52px;
  height: 10px;
  background: var(--ink);
  border-radius: 999px;
}

.share-visual::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 37px;
  width: 14px;
  height: 14px;
  background: var(--flow-accent);
  border-radius: 50%;
  box-shadow:
    22px -23px 0 var(--flow-accent),
    44px -23px 0 var(--flow-accent);
}

.phone-visual span {
  width: 72px;
  height: 98px;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.08);
}

.phone-visual i {
  position: absolute;
  bottom: 28px;
  width: 30px;
  height: 5px;
  background: #c7c7cc;
  border-radius: 999px;
}

.phone-visual b {
  position: absolute;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--flow-accent);
  border-radius: 50%;
  font-size: 20px;
  box-shadow: 0 12px 22px color-mix(in srgb, var(--flow-accent) 26%, transparent);
}

.phone-visual::after {
  content: "";
  position: absolute;
  right: 31px;
  top: 42px;
  width: 18px;
  height: 18px;
  background: #30c750;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 30px 0 #1677ff,
    0 30px 0 3px #fff,
    0 8px 18px rgba(0, 0, 0, 0.08);
}

.brand-visual span {
  width: 104px;
  height: 76px;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06);
}

.brand-visual span::before {
  content: "";
  position: absolute;
  width: 62px;
  height: 20px;
  top: 51px;
  left: 50%;
  background: var(--flow-accent);
  border-radius: 999px;
  transform: translateX(-50%);
}

.brand-visual i {
  position: absolute;
  bottom: 28px;
  width: 66px;
  height: 7px;
  background: #c7c7cc;
  border-radius: 999px;
}

.brand-visual::after {
  content: "LOGO";
  position: absolute;
  top: 38px;
  left: 50%;
  display: grid;
  min-width: 46px;
  height: 20px;
  place-items: center;
  color: var(--flow-accent);
  background: color-mix(in srgb, var(--flow-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--flow-accent) 24%, #fff);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  transform: translateX(-50%);
}

.payment-preview {
  background: #fff;
}

.pay-page-card {
  display: grid;
  gap: 7px;
  align-self: end;
  width: 100%;
  min-height: 94px;
  margin-top: 8px;
  margin-bottom: 38px;
  padding: 10px;
  align-content: center;
  justify-items: center;
  text-align: center;
  background: #f5f5f7;
  border: 1px solid rgba(29, 29, 31, 0.055);
  border-radius: 16px;
}

.pay-page-card img {
  width: 80px;
  height: 28px;
  object-fit: contain;
}

.pay-page-card strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}

.pay-page-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.method-logo {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
}

@media (max-width: 1460px) {
  .flow-steps {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

.status-card {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 106px;
  padding: 11px 14px;
  color: #fff;
  background: var(--glass-dark);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  text-align: center;
}

.status-card span {
  display: block;
  color: rgba(255, 255, 255, 0.68);
}

.status-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.payout-module {
  scroll-margin-top: 18px;
}

.reconciliation-module {
  scroll-margin-top: 18px;
}

.permission-module {
  scroll-margin-top: 18px;
}

.payout-create-panel {
  background: #fff;
}

.payout-approval-panel {
  background: #fff;
}

.approval-list {
  display: grid;
  gap: 14px;
}

.approval-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(0, 0, 0, 0.05);
}

.approval-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.approval-card > div:first-child strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.approval-card > div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.approval-card dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.approval-card dl div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  background: rgba(245, 245, 247, 0.78);
  border-radius: 8px;
}

.approval-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.approval-card dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.approval-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.approve-btn,
.reject-btn {
  height: var(--button-height);
  min-width: 100px;
  padding: 0 16px;
  border-radius: var(--button-radius);
  font-size: 13px;
  font-weight: 600;
}

.single-tab {
  grid-template-columns: 1fr;
}

.reconciliation-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.reconciliation-copy {
  display: grid;
  gap: 22px;
  align-content: start;
  padding: clamp(30px, 4vw, 54px);
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 113, 227, 0.08), transparent 36%),
    #fff;
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 46px rgba(0, 0, 0, 0.045);
}

.reconciliation-copy h3 {
  max-width: 760px;
  color: var(--ink);
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.reconciliation-copy h3 span,
.reconciliation-copy p span {
  display: block;
}

.reconciliation-copy p {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 21px);
  font-weight: 500;
  line-height: 1.55;
}

.reconciliation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.reconciliation-visual {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(245, 245, 247, 0.86), rgba(255, 255, 255, 0.96));
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 18px 46px rgba(0, 0, 0, 0.05);
}

.recon-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.recon-toolbar span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.recon-toolbar em {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 8px;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

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

.recon-metrics div {
  display: grid;
  gap: 6px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(210, 210, 215, 0.68);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.recon-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.recon-metrics strong {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
}

.recon-table {
  display: grid;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
}

.recon-row {
  display: grid;
  grid-template-columns: 150px 130px 70px 72px 100px 78px 82px 86px 142px 58px;
  align-items: center;
  gap: 10px;
  min-width: 1050px;
  padding: 14px 16px;
  border-top: 1px solid rgba(210, 210, 215, 0.58);
}

.recon-row:first-child {
  border-top: 0;
}

.recon-row span {
  min-width: 0;
  color: var(--ink);
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recon-head {
  background: rgba(245, 245, 247, 0.82);
}

.recon-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.recon-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.recon-status.done {
  color: #0a7a31;
  background: rgba(52, 199, 89, 0.12);
}

.recon-status.pending {
  color: var(--accent);
  background: rgba(0, 113, 227, 0.1);
}

.permission-hero {
  display: grid;
  gap: 16px;
}

.permission-showcase {
  padding: 14px;
  background: #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.58);
  border-radius: 26px;
}

.permission-copy {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 16px;
  min-height: auto;
  padding: clamp(28px, 3.6vw, 48px);
  background:
    radial-gradient(circle at 92% 12%, rgba(0, 113, 227, 0.07), transparent 34%),
    #fff;
  border: 1px solid rgba(210, 210, 215, 0.6);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2px rgba(0, 0, 0, 0.025);
  text-align: left;
}

.permission-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.permission-copy h3 {
  max-width: 980px;
  color: var(--ink);
  font-size: clamp(32px, 3.45vw, 50px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
}

.permission-copy p {
  max-width: none;
  color: var(--muted);
  font-size: clamp(16px, 1.34vw, 20px);
  font-weight: 500;
  line-height: 1.65;
  white-space: nowrap;
}

.permission-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.permission-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.permission-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  background:
    #f5f5f7;
  border: 1px solid rgba(210, 210, 215, 0.62);
  border-radius: 26px;
}

.permission-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.permission-toolbar span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.permission-toolbar em {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: 12px;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 14px;
}

.role-card {
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 188px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 210, 215, 0.68);
  border-radius: 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 1px 2px rgba(0, 0, 0, 0.025);
}

.role-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.role-card i {
  display: inline-grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--accent);
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.14);
  border-radius: 15px;
  font-style: normal;
  font-weight: 700;
}

.role-card i svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.role-card-head div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.role-card strong {
  color: var(--ink);
  font-size: 19px;
  font-weight: 700;
}

.role-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.role-card li span {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
  background: rgba(0, 113, 227, 0.12);
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 50%;
}

.role-card li span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 6px;
  height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(40deg);
}

.admin-role i {
  color: #1d1d1f;
  background: rgba(29, 29, 31, 0.06);
  border-color: rgba(29, 29, 31, 0.13);
}

.service-role i {
  color: #0071e3;
}

.finance-role i {
  color: #00a6b3;
  background: rgba(0, 166, 179, 0.08);
  border-color: rgba(0, 166, 179, 0.15);
}

.audit-role i {
  color: #8b5cf6;
  background: rgba(139, 92, 246, 0.09);
  border-color: rgba(139, 92, 246, 0.16);
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.7fr) repeat(2, minmax(138px, 0.7fr));
  gap: 12px;
  margin-bottom: 16px;
}

.table-frame {
  overflow: hidden;
  border: 1px solid rgba(210, 210, 215, 0.72);
  border-radius: 8px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(0, 0, 0, 0.045);
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.45;
}

th {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.48);
  font-weight: 600;
}

td {
  color: #3a3a3c;
  font-weight: 500;
}

th:nth-child(1),
td:nth-child(1) {
  width: 13%;
}

th:nth-child(2),
td:nth-child(2) {
  width: 11%;
}

th:nth-child(3),
td:nth-child(3) {
  width: 8%;
}

th:nth-child(4),
td:nth-child(4) {
  width: 16%;
}

th:nth-child(5),
td:nth-child(5) {
  width: 11%;
}

th:nth-child(6),
td:nth-child(6) {
  width: 10%;
}

th:nth-child(7),
td:nth-child(7) {
  width: 13%;
}

th:nth-child(8),
td:nth-child(8) {
  width: 9%;
}

th:nth-child(9),
td:nth-child(9) {
  width: 9%;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-grid;
  height: 26px;
  min-width: 64px;
  place-items: center;
  padding: 0 9px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
}

.status.paid {
  color: var(--green);
  background: #edf8f0;
}

.status.pending {
  color: var(--orange);
  background: #fff6e8;
}

.status.error {
  color: var(--red);
  background: #fff0f0;
}

@media (max-width: 1180px) {
  .site-header {
    padding-top: 34px;
    padding-bottom: 28px;
  }

  .site-header-inner {
    gap: 48px;
  }

  .logo-link img {
    height: 82px;
  }

  .site-nav {
    gap: 42px;
  }

  .dashboard-card {
    grid-template-columns: 108px minmax(0, 1fr);
  }

  .brand span:last-child,
  .nav-title strong,
  .nav-link span:last-child {
    display: none;
  }

  .sidebar {
    align-items: center;
    width: 108px;
    padding-inline: 18px;
  }

  .nav-groups {
    width: 100%;
    justify-items: center;
    gap: 24px;
    margin-top: 20px;
  }

  .nav-group {
    justify-items: center;
    padding: 8px;
  }

  .nav-title,
  .nav-link {
    justify-content: center;
  }

  .nav-link {
    width: 34px;
    padding: 0;
  }

  .nav-dot {
    margin-left: 0;
  }

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

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

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

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

  .feature-copy {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .flow-steps {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 20px;
  }

  .reconciliation-hero {
    grid-template-columns: 1fr;
  }

  .permission-hero {
    grid-template-columns: 1fr;
  }

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

  .reconciliation-actions {
    justify-content: flex-start;
  }

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

  .flow-step:not(:last-child)::after,
  .flow-step:not(:last-child)::before {
    display: none;
  }
}

@media (max-width: 767px) {
  .site-shell {
    padding: 0;
  }

  .site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    max-width: calc(100vw - 32px);
    margin-inline: auto;
    padding: 24px 16px 18px;
  }

  .site-header-inner {
    flex-direction: column;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
  }

  .header-spacer {
    display: none;
  }

  .logo-link {
    width: auto;
    height: auto;
  }

  .logo-link img {
    height: 74px;
  }

  .site-nav {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
    max-width: calc(100vw - 40px);
    justify-content: center;
    gap: clamp(22px, 7vw, 34px);
    overflow: visible;
    padding: 0;
  }

  .site-nav a {
    min-width: 0;
    width: auto;
    height: auto;
    padding: 0;
    font-size: 13px;
    white-space: nowrap;
  }

  .dashboard-card {
    min-height: 100vh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .sidebar {
    display: none;
  }

  .dashboard-content {
    padding: 22px 20px 30px;
  }

  .dashboard-main {
    grid-column: 1;
  }

  .section-title,
  .module-heading,
  .orders-top,
  .panel-head,
  .form-actions,
  .approval-card > div:first-child {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .collection-form,
  .payout-form,
  .flow-steps,
  .filters {
    grid-template-columns: 1fr;
  }

  .opening-statement {
    width: min(100%, 390px);
    padding: 34px 20px 38px;
  }

  .feature-copy {
    padding: 24px 20px;
  }

  .feature-copy-lines span {
    white-space: normal;
  }

  .opening-statement h1 {
    font-size: clamp(32px, 10vw, 46px);
    white-space: normal;
  }

  .opening-statement small {
    max-width: min(100%, 330px);
    font-size: 15px;
  }

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

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

  .recon-table {
    overflow-x: auto;
  }

  .recon-row {
    min-width: 1050px;
  }

  .permission-showcase,
  .permission-visual {
    padding: 12px;
    border-radius: 22px;
  }

  .permission-copy {
    min-height: auto;
    padding: 24px 20px;
    border-radius: 18px;
  }

  .permission-copy h3 {
    font-size: clamp(30px, 9vw, 42px);
  }

  .permission-copy p {
    white-space: normal;
  }

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

  .span-2 {
    grid-column: 1 / -1;
  }

  .transfer-type {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

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

  .approval-actions {
    flex-direction: column;
  }

  .approve-btn,
  .reject-btn {
    width: 100%;
  }

  .flow-step::before,
  .flow-step::after {
    content: none;
    display: none;
  }

  .flow-steps {
    gap: 12px;
    padding: 10px;
    border-radius: 20px;
  }

  .flow-step {
    min-height: 335px;
    padding: 22px 20px 24px;
    border-radius: 20px;
  }

  .flow-card-head {
    margin-bottom: 20px;
  }

  .step-index {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .flow-step h5 {
    margin-bottom: 14px;
    font-size: clamp(24px, 6.5vw, 29px);
  }

  .flow-step p {
    min-height: auto;
    margin-bottom: 14px;
    font-size: 15px;
  }

  .flow-extra,
  .pay-page-card {
    min-height: 90px;
    margin-bottom: 36px;
  }

  .flow-step p span {
    white-space: normal;
  }

  .table-frame {
    overflow-x: auto;
  }

  table {
    min-width: 980px;
  }

  .module-tabs {
    width: 100%;
  }

  .info-page {
    min-height: 100vh;
    padding: 0 20px 28px;
  }

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

/* Unified macOS visual upgrade layer */
.glass-card,
.info-card,
.info-grid article,
.payment-module,
.create-panel,
.orders-panel,
.metric,
.trend-metric,
.status-card,
.panel-promo,
.flow-steps,
.flow-step,
.flow-extra,
.link-card,
.qr-card,
.pay-page-card,
.approval-card,
.reconciliation-copy,
.reconciliation-visual,
.recon-metrics div,
.recon-table,
.permission-showcase,
.permission-copy,
.permission-visual,
.role-card,
.table-frame {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  border-radius: var(--glass-card-radius);
  box-shadow: var(--glass-card-shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dashboard-card {
  background: var(--glass-card-bg);
  border: 1px solid var(--glass-card-border);
  border-radius: 32px;
  box-shadow: var(--glass-card-shadow);
}

.sidebar {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--glass-card-border);
  box-shadow: var(--glass-card-shadow);
}

.dashboard-card,
.payment-module,
.create-panel,
.orders-panel,
.info-card,
.reconciliation-copy,
.reconciliation-visual,
.permission-showcase,
.permission-visual {
  border-radius: 32px;
}

.panel-promo,
.flow-extra,
.link-card,
.qr-card,
.recon-metrics div,
.table-frame,
.recon-table,
.role-card,
.info-grid article {
  border-radius: 28px;
}

.status-card,
.trend-metric {
  color: var(--ink);
}

.status-card span,
.trend-metric small {
  color: var(--muted);
}

.status-card strong,
.trend-metric .metric-label,
.trend-metric strong {
  color: var(--ink);
}

.feature-copy,
.reconciliation-copy,
.permission-copy,
.info-card {
  position: relative;
  overflow: hidden;
  background: var(--hero-soft-gradient);
}

.feature-copy > *,
.reconciliation-copy > *,
.permission-copy > *,
.info-card > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 1180px) {
  .dashboard-card,
  .payment-module,
  .create-panel,
  .orders-panel,
  .info-card,
  .reconciliation-copy,
  .reconciliation-visual,
  .permission-showcase,
  .permission-visual {
    border-radius: 30px;
  }
}

@media (max-width: 767px) {
  .glass-card,
  .dashboard-card,
  .sidebar,
  .info-card,
  .info-grid article,
  .payment-module,
  .create-panel,
  .orders-panel,
  .metric,
  .trend-metric,
  .status-card,
  .panel-promo,
  .flow-steps,
  .flow-step,
  .flow-extra,
  .link-card,
  .qr-card,
  .pay-page-card,
  .approval-card,
  .reconciliation-copy,
  .reconciliation-visual,
  .recon-metrics div,
  .recon-table,
  .permission-showcase,
  .permission-copy,
  .permission-visual,
  .role-card,
  .table-frame {
    border-radius: 24px;
  }

  .feature-copy,
  .reconciliation-copy,
  .permission-copy,
  .info-card {
    background-size: 220% 220%;
  }
}

/* API page scoped macOS glass treatment */
.api-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 40px);
  padding-bottom: 34px;
  background: #fff;
}

.api-page::before {
  content: none;
}

.api-page .info-card {
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.42);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.api-page .info-card h1 {
  color: var(--ink);
}

.api-page .info-card > p,
.api-page .info-grid p {
  color: #667085;
}

.api-page .glass-panel {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top-color: rgba(255, 255, 255, 0.75);
  border-radius: 38px;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.api-page .glass-pill {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.api-page .api-stack .glass-pill:hover {
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 12px 34px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateY(-1px);
}

.api-page .api-source-stack span::before {
  background: #2f8ceb;
  box-shadow: 0 0 0 5px rgba(47, 140, 235, 0.08);
}

.api-page .api-result-stack span::before {
  background: #35c56b;
  box-shadow: 0 0 0 5px rgba(53, 197, 107, 0.08);
}

.api-page .glass-card-node {
  align-content: center;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-top-color: rgba(255, 255, 255, 0.82);
  border-radius: 30px;
  box-shadow:
    0 24px 68px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
}

.api-page .api-hub img {
  width: 172px;
  height: 86px;
  filter: none;
}

.api-page .api-hub span {
  margin-top: 2px;
}

.api-page .api-route::before {
  height: 1px;
  background: linear-gradient(90deg, rgba(104, 169, 235, 0), rgba(104, 169, 235, 0.56), rgba(104, 169, 235, 0));
}

.api-page .api-route-pill {
  color: #1f7ed8;
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(78, 155, 235, 0.32);
  box-shadow:
    0 8px 22px rgba(47, 140, 235, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.api-page .glass-card-item {
  display: grid;
  grid-template-rows: auto auto 1fr;
  min-height: 224px;
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-top-color: rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.api-page .glass-card-item:hover {
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 20px 54px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.api-page .glass-badge {
  color: #fff;
  background: rgba(29, 29, 31, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.34);
  border-radius: 12px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .api-page .glass-pill,
  .api-page .glass-card-item {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .api-page .api-route::before {
    width: 1px;
    background: linear-gradient(180deg, rgba(104, 169, 235, 0), rgba(104, 169, 235, 0.56), rgba(104, 169, 235, 0));
  }

  .api-page .glass-card-item {
    min-height: 210px;
  }
}

@media (max-width: 767px) {
  .api-page {
    padding-bottom: 28px;
  }

  .api-page .glass-panel {
    border-radius: 26px;
  }

  .api-page .glass-pill {
    border-radius: 18px;
  }

  .api-page .glass-card-node,
  .api-page .glass-card-item {
    border-radius: 24px;
  }

  .api-page .glass-card-item {
    min-height: 188px;
  }
}

/* API page scoped Liquid Glass v2 */
.api-page.liquid-page-bg {
  min-height: calc(100vh - 40px);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "SF Pro Text",
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(142, 197, 255, 0.22), rgba(142, 197, 255, 0) 34%),
    radial-gradient(circle at 84% 8%, rgba(214, 194, 255, 0.2), rgba(214, 194, 255, 0) 32%),
    radial-gradient(circle at 52% 96%, rgba(184, 247, 235, 0.18), rgba(184, 247, 235, 0) 38%),
    linear-gradient(135deg, #fff 0%, #f8fbff 48%, #fffaff 100%);
  background-size: 145% 145%;
  animation: liquidPageDrift 24s ease-in-out infinite alternate;
}

@keyframes liquidPageDrift {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 72%;
  }
}

.api-page .info-card.api-card {
  background: rgba(255, 255, 255, 0.18);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.api-page .eyebrow {
  color: rgba(29, 29, 31, 0.56);
  font-size: clamp(14px, 1vw, 16px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.api-page .info-card h1 {
  color: #1d1d1f;
  font-size: clamp(58px, 7vw, 104px);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.api-page .info-card > p {
  max-width: 980px;
  color: #6e6e73;
  font-size: clamp(18px, 1.55vw, 22px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  font-weight: 300;
  line-height: 1.7;
}

.api-page .liquid-glass-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-top-color: rgba(255, 255, 255, 0.86);
  border-radius: 40px;
  box-shadow:
    0 30px 90px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.api-page .liquid-glass-item {
  min-height: 58px;
  padding: 0 24px;
  color: #6e6e73;
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-top-color: rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.api-page .api-stack .liquid-glass-item:hover {
  background: rgba(255, 255, 255, 0.62);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-1px);
}

.api-page .api-source-stack .liquid-glass-item::before {
  background: rgba(0, 122, 255, 0.78);
  box-shadow: 0 0 0 6px rgba(0, 122, 255, 0.09);
}

.api-page .api-result-stack .liquid-glass-item::before {
  background: rgba(52, 199, 89, 0.78);
  box-shadow: 0 0 0 6px rgba(52, 199, 89, 0.09);
}

.api-page .liquid-glass-card.api-hub {
  min-height: 236px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-top-color: rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  box-shadow:
    0 22px 70px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
}

.api-page .liquid-glass-card.api-hub img {
  width: clamp(150px, 10vw, 184px);
  height: auto;
  filter: none;
}

.api-page .liquid-glass-card.api-hub span {
  color: #6e6e73;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
}

.api-page .liquid-connector-line::before {
  height: 1px;
  background:
    linear-gradient(90deg, rgba(0, 122, 255, 0), rgba(0, 122, 255, 0.46), rgba(0, 122, 255, 0));
  opacity: 0.9;
}

.api-page .liquid-glass-pill {
  min-width: 64px;
  height: 42px;
  color: rgba(0, 113, 227, 0.9);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(0, 122, 255, 0.26);
  border-top-color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  box-shadow:
    0 10px 28px rgba(0, 122, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  font-size: 14px;
  font-weight: 650;
  transition:
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.api-page .liquid-glass-pill:hover {
  background: rgba(255, 255, 255, 0.62);
  transform: translateY(-1px);
}

.api-page .liquid-glass-pill:active {
  background: rgba(255, 255, 255, 0.48);
  transform: translateY(0);
}

.api-page .api-capability-grid {
  gap: clamp(18px, 1.8vw, 28px);
}

.api-page .liquid-glass-card.glass-card-item {
  min-height: 238px;
  padding: clamp(26px, 2.4vw, 34px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-top-color: rgba(255, 255, 255, 0.82);
  border-radius: 32px;
  box-shadow:
    0 24px 70px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(20px) saturate(175%);
  -webkit-backdrop-filter: blur(20px) saturate(175%);
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.api-page .liquid-glass-card.glass-card-item:hover {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.66), rgba(255, 255, 255, 0.42));
  box-shadow:
    0 28px 78px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transform: translateY(-2px);
}

.api-page .liquid-glass-card.glass-card-item h2 {
  color: #1d1d1f;
  font-size: clamp(22px, 1.7vw, 28px);
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.api-page .liquid-glass-card.glass-card-item p {
  color: #6e6e73;
  font-size: clamp(16px, 1.15vw, 18px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", sans-serif;
  font-weight: 300;
  line-height: 1.72;
}

.api-page .liquid-glass-badge {
  min-width: 54px;
  height: 42px;
  padding: 0 14px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(29, 29, 31, 0.78), rgba(29, 29, 31, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-top-color: rgba(255, 255, 255, 0.36);
  border-radius: 14px;
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  font-size: 16px;
  font-weight: 700;
}

.api-page .liquid-glass-button {
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  background: rgba(0, 122, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  box-shadow:
    0 14px 35px rgba(0, 122, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  font-weight: 650;
}

.api-page .liquid-glass-button:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .api-page.liquid-page-bg {
    animation: none;
  }

  .api-page .liquid-glass-item,
  .api-page .liquid-glass-pill,
  .api-page .liquid-glass-card.glass-card-item {
    transition: none;
  }
}

@media (max-width: 1180px) {
  .api-page .liquid-glass-panel {
    padding: 30px;
    border-radius: 34px;
  }

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

  .api-page .liquid-connector-line::before {
    width: 1px;
    height: auto;
    background:
      linear-gradient(180deg, rgba(0, 122, 255, 0), rgba(0, 122, 255, 0.44), rgba(0, 122, 255, 0));
  }

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

@media (max-width: 767px) {
  .api-page.liquid-page-bg {
    background-size: 180% 180%;
  }

  .api-page .info-card h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .api-page .liquid-glass-panel {
    padding: 20px;
    border-radius: 28px;
  }

  .api-page .api-stack,
  .api-page .api-capability-grid {
    grid-template-columns: 1fr;
  }

  .api-page .liquid-glass-item {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 20px;
  }

  .api-page .liquid-glass-card.api-hub {
    min-height: 198px;
    border-radius: 28px;
  }

  .api-page .liquid-glass-card.glass-card-item {
    min-height: 204px;
    border-radius: 28px;
  }
}

/* Unified responsive system: mobile <=767, tablet 768-1023, desktop >=1024 */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

img,
video {
  height: auto;
}

.site-shell,
.hero-section,
.info-page,
.dashboard-card,
.dashboard-main,
.dashboard-content,
.payment-module,
.create-panel,
.orders-panel,
.info-card,
.api-visual,
.table-frame,
.recon-table {
  min-width: 0;
}

.site-shell {
  width: 100%;
  max-width: 1480px;
}

.nav-toggle {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 14px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 22px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    opacity 140ms ease;
}

.nav-toggle span:nth-child(1) {
  transform: translate(-50%, calc(-50% - 6px));
}

.nav-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.nav-toggle span:nth-child(3) {
  transform: translate(-50%, calc(-50% + 6px));
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.28);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  body {
    min-width: 0;
  }

  .site-shell {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .hero-section,
  .info-page {
    gap: 0;
  }

  .hero-section {
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
  }

  .site-header {
    position: relative;
    z-index: 30;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 74px;
    overflow: visible;
    padding: 16px 18px 12px;
  }

  .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100vw - 36px);
    max-width: 430px;
    margin: 0 auto;
  }

  .logo-link {
    min-width: 0;
  }

  .logo-link img {
    width: auto;
    max-width: min(210px, calc(100vw - 96px));
    height: 54px;
  }

  .nav-toggle {
    position: fixed !important;
    top: 16px;
    right: 16px;
    display: inline-flex !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 999;
    color: #1d1d1f;
    background: rgba(245, 245, 247, 0.94);
    border: 1px solid rgba(60, 60, 67, 0.2);
    border-color: rgba(60, 60, 67, 0.2);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.88),
      0 10px 24px rgba(15, 23, 42, 0.12);
  }

  .nav-toggle span {
    background: #1d1d1f;
    display: block;
  }

  .site-nav {
    position: fixed !important;
    top: 68px;
    left: 16px;
    right: 16px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: auto;
    max-width: none;
    padding: 10px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow:
      0 18px 45px rgba(15, 23, 42, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);
    transform: translateY(-6px);
    transition:
      opacity 160ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .site-header.nav-open .site-nav {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .site-nav a {
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 500;
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: var(--accent);
    background: rgba(0, 113, 227, 0.07);
  }

  .opening-statement {
    width: calc(100vw - 32px);
    max-width: 430px;
    gap: 16px;
    padding: 52px 20px 58px;
  }

  .opening-statement h1 {
    width: 100%;
    max-width: 360px;
    font-size: clamp(31px, 9.2vw, 36px);
    line-height: 1.16;
    white-space: normal;
    text-wrap: balance;
  }

  .opening-statement small {
    width: min(280px, calc(100vw - 48px)) !important;
    max-width: min(280px, calc(100vw - 48px));
    font-size: 15px;
    font-weight: 300;
    line-height: 1.72;
    overflow-wrap: anywhere;
  }

  .dashboard-card {
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    min-height: 0;
    overflow: hidden;
    border-inline: 0;
    border-radius: 0;
  }

  .dashboard-card.sidebar-fixed .sidebar,
  .dashboard-card.sidebar-bottom .sidebar,
  .sidebar {
    display: none !important;
  }

  .dashboard-main {
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
  }

  .dashboard-content {
    display: grid;
    gap: 22px;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 20px 16px 36px;
    overflow: hidden;
  }

  .dashboard-content > *,
  .payment-module,
  .create-panel,
  .orders-panel,
  .feature-copy,
  .module-grid,
  .collection-flow,
  .flow-steps,
  .reconciliation-hero,
  .permission-hero,
  .info-card,
  .api-visual {
    max-width: 100%;
  }

  .payment-module,
  .create-panel,
  .orders-panel,
  .info-card,
  .reconciliation-copy,
  .reconciliation-visual,
  .permission-showcase,
  .permission-copy,
  .permission-visual {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    padding: 18px;
    border-radius: 24px;
    overflow: hidden;
  }

  .module-heading,
  .orders-top,
  .panel-head,
  .flow-head,
  .recon-toolbar,
  .permission-toolbar,
  .approval-card > div:first-child {
    flex-direction: column;
    align-items: flex-start;
  }

  .module-heading h2,
  .section-title h2 {
    font-size: 25px;
  }

  .module-tabs {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .single-tab {
    grid-template-columns: 1fr;
  }

  .tab {
    min-width: 0;
    height: 40px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .feature-copy {
    gap: 14px;
    padding: 26px 20px;
    border-radius: 24px;
    overflow: hidden;
  }

  .feature-copy h3,
  .reconciliation-copy h3,
  .permission-copy h3 {
    max-width: min(100%, 320px);
    font-size: clamp(27px, 7.6vw, 31px);
    line-height: 1.16;
    text-wrap: balance;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .feature-copy > span,
  .feature-copy-lines,
  .reconciliation-copy p,
  .permission-copy p {
    max-width: min(100%, 320px);
    font-size: 15px;
    line-height: 1.72;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .feature-copy-lines span {
    white-space: normal;
  }

  .module-grid,
  .metric-grid,
  .collection-form,
  .payout-form,
  .filters,
  .flow-steps,
  .reconciliation-hero,
  .recon-metrics,
  .permission-hero,
  .role-grid,
  .info-grid,
  .api-capability-grid {
    grid-template-columns: 1fr !important;
  }

  .collection-form,
  .payout-form,
  .filters {
    gap: 14px;
  }

  .collection-form label,
  .payout-form label,
  .filters label,
  .span-2,
  .wide,
  .amount-field {
    grid-column: 1 / -1;
  }

  input,
  select {
    min-height: 48px;
  }

  textarea {
    min-height: 112px;
  }

  .form-actions,
  .payout-actions,
  .approval-actions,
  .reconciliation-actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
  }

  .primary-btn,
  .secondary-btn,
  .blue-btn,
  .approve-btn,
  .reject-btn,
  .ghost-btn,
  .destructive-btn {
    width: 100%;
    min-height: 44px;
  }

  .transfer-type {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .transfer-type label {
    justify-content: flex-start;
    min-height: 54px;
  }

  .flow-steps {
    gap: 14px;
    padding: 10px;
    border-radius: 22px;
  }

  .flow-step {
    min-height: auto;
    padding: 22px 20px 24px;
    border-radius: 22px;
  }

  .flow-step h5 {
    font-size: clamp(24px, 7vw, 29px);
  }

  .flow-step p {
    min-height: auto;
    font-size: 15px;
    word-break: normal;
  }

  .flow-extra,
  .pay-page-card {
    min-height: 96px;
    margin-bottom: 42px;
  }

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

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

  .wallet-detail em {
    grid-template-columns: 28px minmax(0, auto);
    min-height: 48px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .method-logo {
    width: 26px;
    height: 26px;
  }

  .flow-action {
    right: 18px;
    bottom: 18px;
    width: 34px;
    height: 34px;
    font-size: 22px;
  }

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

  .table-frame,
  .recon-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    width: 980px;
    min-width: 980px;
  }

  .recon-row {
    min-width: 1050px;
  }

  .permission-copy p {
    white-space: normal;
  }

  .role-card small {
    white-space: normal;
  }

  .info-page {
    min-height: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden;
    padding: 0 16px 32px;
  }

  .info-card {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    gap: 18px;
    padding: 28px 20px;
  }

  .info-card h1,
  .api-page .info-card h1 {
    max-width: 100%;
    font-size: clamp(34px, 13vw, 52px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .info-card > p,
  .api-page .info-card > p {
    max-width: 100%;
    font-size: 15px;
    line-height: 1.72;
  }

  .info-grid article,
  .api-page .liquid-glass-card.glass-card-item {
    min-height: auto;
    padding: 22px;
  }

  .api-page.liquid-page-bg {
    min-height: 0;
    padding-bottom: 32px;
  }

  .api-visual,
  .api-page .liquid-glass-panel {
    min-height: 0;
    padding: 18px;
    border-radius: 28px;
  }

  .api-stack,
  .api-page .api-stack {
    grid-template-columns: 1fr !important;
  }

  .api-route {
    min-height: 54px;
  }

  .api-route::before,
  .api-page .liquid-connector-line::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(0, 122, 255, 0), rgba(0, 122, 255, 0.42), rgba(0, 122, 255, 0));
  }

  .api-hub,
  .api-page .liquid-glass-card.api-hub {
    min-height: 180px;
    padding: 22px 16px;
  }

  .api-hub img,
  .api-page .liquid-glass-card.api-hub img {
    width: 132px;
    height: auto;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .site-shell {
    padding: 20px;
  }

  .site-header {
    overflow: visible;
    padding: 28px 18px 24px;
  }

  .site-header-inner {
    flex-direction: row;
    gap: 48px;
    width: fit-content;
    max-width: 100%;
  }

  .logo-link img {
    height: 76px;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    gap: 36px;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .site-nav a {
    min-height: auto;
    padding: 0;
    font-size: 15px;
  }

  .opening-statement {
    padding: 58px 20px 62px;
  }

  .opening-statement h1 {
    max-width: 760px;
    font-size: clamp(42px, 6.4vw, 58px);
    white-space: normal;
    text-wrap: balance;
  }

  .dashboard-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .dashboard-card.sidebar-fixed .sidebar {
    width: 96px;
  }

  .dashboard-main {
    grid-column: 2;
  }

  .sidebar {
    display: flex !important;
    width: 96px;
    padding-inline: 14px;
  }

  .nav-title strong,
  .nav-link span:last-child {
    display: none;
  }

  .dashboard-content {
    padding: 26px;
  }

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

  .collection-form,
  .payout-form,
  .transfer-type,
  .flow-steps,
  .role-grid,
  .info-grid,
  .api-capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .module-grid,
  .reconciliation-hero,
  .permission-hero {
    grid-template-columns: 1fr;
  }

  .api-visual,
  .api-page .liquid-glass-panel {
    grid-template-columns: 1fr;
  }

  .api-stack,
  .api-page .api-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .site-header {
    overflow: visible;
  }

  .site-header-inner {
    flex-direction: row;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .opening-statement h1 {
    white-space: nowrap;
  }
}
