:root {
  --navy: #0b1b33;
  --ink: #12263f;
  --muted: #546578;
  --blue: #5b4dff;
  --blue-deep: #4338ca;
  --blue-soft: #eef0ff;
  --blue-mid: #9b93ff;
  --brand-blue: #2563eb;
  --brand-violet: #7c3aed;
  --brand-grad: linear-gradient(135deg, #2563eb 0%, #5b4dff 48%, #7c3aed 100%);
  --line: #e4eaf2;
  --surface: #fff;
  --canvas: #f4f7fb;
  --sidebar: 272px;
  --shadow: 0 10px 24px rgba(11, 27, 51, 0.08);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bs-primary: #5b4dff;
  --bs-primary-rgb: 91, 77, 255;
  --bs-link-color: #5b4dff;
  --bs-link-hover-color: #4338ca;
  --bs-focus-ring-color: rgba(91, 77, 255, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: #b7c6e0 transparent;
}

body {
  margin: 0;
  /* background:
    radial-gradient(1200px 480px at 12% -10%, rgba(91, 77, 255, 0.08), transparent 60%),
    radial-gradient(900px 420px at 92% 0%, rgba(37, 99, 235, 0.07), transparent 55%),
    var(--canvas); */
  font-family: var(--font);
  color: var(--navy);
  font-size: 15px;
  line-height: 1.5;
}

::selection {
  background: #c7c3ff;
  color: #0b1b33;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 50;
  display: flex;
  flex-direction: column;
  transition: width 0.22s var(--ease);
  overflow: hidden;
}

.brand-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid #e4eaf2;
  flex-shrink: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0b1b33;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand-grad);
  border-radius: 10px;
  font-size: 16px;
}

.brand-logo {
  display: block;
  height: 36px;
  width: auto;
}

.login-brand .brand-logo {
  height: 48px;
}

.icon-btn {
  border: 0;
  background: transparent;
  color: #3d4f66;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  position: relative;
  transition: transform 160ms var(--ease), background 160ms ease, color 160ms ease;
}

.icon-btn:hover {
  background: #eef0ff;
  color: var(--blue);
}

.icon-btn:active {
  transform: scale(0.97);
}

.side-nav {
  overflow-y: auto;
  padding: 16px 12px 12px;
  flex: 1;
  scrollbar-width: thin;
}

.nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  color: #3d4f66;
  text-decoration: none;
  font-size: 14.5px;
  white-space: nowrap;
  margin: 2px 0;
}

.nav-link i {
  font-size: 16px;
  width: 18px;
  text-align: center;
  color: #2d4570;
}

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

button.nav-link {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.side-nav .nav-link.is-danger,
.side-nav .nav-link.is-danger i {
  color: #9f2d20;
}

.side-nav .nav-link.is-danger:hover,
.side-nav .nav-link.is-danger:hover i {
  background: #fff1ef;
  color: #9f2d20;
}

.nav-link.active {
  background: #fff;
  color: var(--blue);
  font-weight: 600;
  box-shadow:
    0 1px 2px rgba(11, 27, 51, 0.04),
    0 8px 20px rgba(91, 77, 255, 0.12);
}

.nav-link.active i {
  color: var(--blue);
}

.nav-group {
  margin-top: 18px;
}

.side-nav>.nav-group:first-child {
  margin-top: 4px;
}

.nav-heading {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #546578;
  padding: 0 12px 8px;
  font-weight: 600;
  white-space: nowrap;
}

.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.help-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7f0ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}

.help-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  white-space: nowrap;
}

.help-copy strong {
  font-size: 13px;
}

.help-copy small {
  font-size: 12px;
  color: var(--muted);
}

.user-card {
  margin: 14px 12px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.user-card-copy strong {
  font-size: 14px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.user-card-copy small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.user-env {
  color: #4338ca;
  background: #eef0ff;
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 700;
  font-size: 11px;
}

.sidebar-footer>a,
.sidebar-footer>button {
  margin-left: auto;
  color: #3d4f66;
  border: 0;
  background: transparent;
  padding: 0;
}

.main-area {
  margin-left: var(--sidebar);
  min-width: 0;
  transition: margin-left 0.22s var(--ease);
}

.topbar {
  height: 72px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.search-box {
  min-height: 37px;
  background: #f3f6fc;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: #546578;
  max-width: 680px;
  flex: 1;
}

.search-box:focus-within {
  border-color: #9b93ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.15);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  color: var(--navy);
  font-size: 14px;
}

.search-box input::placeholder {
  color: #4a5f86;
}

.search-box kbd {
  font-family: var(--font);
  background: #fff;
  border: 1px solid #d5e0f0;
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 12px;
  white-space: nowrap;
  color: #31456e;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.notification-btn {
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding-right: 16px;
  width: 52px;
}

.notification-dot {
  position: absolute;
  right: 6px;
  top: 2px;
  background: #b42318;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #fff;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 8px;
  white-space: nowrap;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #12327a;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 12px;
}

.profile-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.profile-copy strong {
  font-size: 14px;
}

.profile-copy small {
  font-size: 12px;
  color: var(--muted);
}

.profile>i {
  margin-left: 4px;
  color: #31456e;
}

.mobile-menu {
  display: none;
}

.content-wrap {
  padding: 28px 28px 20px;
  max-width: 1440px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #546578;
  font-size: 13px;
  margin: 0 0 18px;
}

.breadcrumb a {
  color: var(--blue);
  text-decoration: none;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--ink);
  font-weight: 600;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 0 16px;
}

.page-heading .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.page-heading-actions .zainbox-view {
  align-self: center;
  height: 38px;
}

.page-heading-actions .btn.is-active {
  background: #eef0ff;
  border-color: var(--blue);
  color: var(--blue-deep);
}

.page-heading h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 8px;
  color: #0d194e;
  text-wrap: balance;
}

.page-heading-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef0ff;
  color: var(--blue);
  font-size: 20px;
  flex: 0 0 auto;
}

.page-heading h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #12263f;
  letter-spacing: -0.02em;
}

.page-heading p {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  max-width: 62ch;
}

.api-status {
  width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  margin-bottom: 10px;
}

.status-check {
  width: 18px;
  height: 18px;
  background: #0b7a45;
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.status-live {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0b7a45;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.status-live span {
  width: 8px;
  height: 8px;
  background: #0b7a45;
  border-radius: 50%;
}

.api-status>a {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.api-status>a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-banner {
  min-height: 340px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(115deg, #eef0ff 0%, #f3f0ff 46%, #c7c3ff 100%);
  border: 1px solid #ddd9ff;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 36px 40px;
  width: 48%;
}

.hero-copy h2 {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #0b1b33;
  margin: 0 0 12px;
  text-wrap: balance;
}

.hero-copy p {
  font-size: 16px;
  line-height: 1.55;
  color: #3d4f66;
  margin: 0 0 20px;
  max-width: 38ch;
}

.hero-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 10px;
  transition: transform 160ms var(--ease), background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  color: #fff;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 8px 16px rgba(91, 77, 255, 0.22);
}

.btn-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.btn-outline-primary {
  color: #4338ca;
  border-color: #9b93ff;
  background: rgba(255, 255, 255, 0.55);
}

.btn-outline-primary:hover {
  background: #fff;
  color: var(--blue-deep);
}

.hero-art {
  position: absolute;
  right: 0;
  top: 0;
  width: 52%;
  height: 100%;
  overflow: hidden;
}

.art-orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.orb-one {
  width: 280px;
  height: 280px;
  right: 24px;
  top: -40px;
}

.orb-two {
  width: 180px;
  height: 180px;
  right: 220px;
  bottom: -80px;
  background: rgba(91, 77, 255, 0.12);
}

.phone-mock {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 22px;
  width: 210px;
  background: #fff;
  border: 4px solid #1d3554;
  border-radius: 24px;
  padding: 12px;
  box-shadow: 0 16px 28px rgba(29, 53, 84, 0.22);
  color: #172952;
}

.code-float {
  display: none;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 8px;
  color: #31456e;
}

.phone-brand {
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.phone-brand i {
  margin-left: auto;
}

.mini-mark {
  background: var(--blue);
  color: #fff;
  border-radius: 4px;
  padding: 0 4px;
}

.balance-card {
  background: linear-gradient(120deg, #0754e7, #0a3ea8);
  border-radius: 12px;
  color: #fff;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.balance-card small {
  font-size: 11px;
  color: #d6e4ff;
}

.balance-card strong {
  font-size: 16px;
}

.balance-card span {
  font-size: 11px;
  color: #d6e4ff;
}

.phone-shortcuts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
}

.phone-shortcuts span {
  font-size: 11px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  color: #3d4f66;
}

.phone-shortcuts i {
  background: #e6f0ff;
  color: var(--blue);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.recent-label {
  font-size: 12px;
  font-weight: 700;
}

.phone-transaction {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 12px;
}

.tx-icon {
  width: 22px;
  height: 22px;
  background: #e4f9ef;
  color: #0b7a45;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.phone-transaction span:nth-child(2) {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.phone-transaction small {
  color: #546578;
  font-size: 11px;
}

.phone-transaction strong {
  font-size: 12px;
  color: #0b7a45;
}

.code-float {
  position: absolute;
  z-index: 2;
  left: 42%;
  top: 56px;
  width: 54%;
  background: #101d3a;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(16, 29, 58, 0.28);
  overflow: hidden;
  color: #e3ecff;
}

.code-tabs {
  height: 40px;
  background: #1a2d4e;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  font-size: 12px;
  color: #d5e2f7;
}

.code-tabs b {
  color: #fff;
  background: #2c4570;
  border-radius: 6px;
  padding: 5px 8px;
}

.code-float pre {
  font: 12px/1.6 var(--mono);
  padding: 12px 14px 16px;
  margin: 0;
  white-space: pre;
  overflow: hidden;
}

.code-muted {
  color: #9eb0cc;
}

.code-red {
  color: #ffb4ae;
}

.code-green {
  color: #9ee6b4;
}

.code-purple {
  color: #e0c2ff;
}

.code-orange {
  color: #ffd08a;
}

.secure-float {
  position: relative;
  z-index: 4;
  margin-top: 18px;
  width: max-content;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(11, 27, 51, 0.16);
}

.secure-float>span {
  background: #e8f2ff;
  color: var(--blue);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.secure-float div {
  display: flex;
  flex-direction: column;
}

.secure-float b {
  font-size: 13px;
}

.secure-float small {
  font-size: 12px;
  color: var(--muted);
}

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

.quick-card {
  min-height: 112px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 160ms var(--ease), border-color 160ms ease;
}

.quick-card:first-child {
  background: #f3f8ff;
  border-color: #c9ddff;
}

.quick-card:hover {
  transform: translateY(-2px);
  border-color: #9b93ff;
  color: var(--navy);
}

.quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.quick-icon.green {
  background: #d8f6e8;
  color: #0b7a45;
}

.quick-icon.blue {
  background: #dceaff;
  color: #4338ca;
}

.quick-icon.purple {
  background: #e7eefc;
  color: #12327a;
}

.quick-icon.amber {
  background: #fff1d6;
  color: #8a4b00;
}

.quick-icon.pink {
  background: #e7f0ff;
  color: #4338ca;
}

.quick-card>span:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-right: 16px;
}

.quick-card b {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.quick-card small {
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.card-arrow {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: #172b60;
  font-size: 14px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr) minmax(220px, 0.7fr);
  gap: 12px;
  align-items: stretch;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
}

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

.panel-heading h3,
.help-title h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
  color: #0b1b33;
}

.panel-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}

.step-progress {
  background: #eef0ff;
  color: #4338ca;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.steps {
  padding: 4px 0 0;
}

.step {
  display: flex;
  gap: 12px;
  position: relative;
  min-height: 68px;
}

.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 34px;
  bottom: 0;
  width: 2px;
  background: #c5d9ff;
}

.step-number {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 6px 12px rgba(11, 27, 51, 0.18);
  position: relative;
  z-index: 1;
}

.step b {
  font-size: 14px;
}

.step p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
  margin: 4px 0 0;
}

.code-window {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}

.snippet-tabs {
  min-height: 44px;
  background: #f6f8fc;
  display: flex;
  align-items: center;
  padding: 6px 8px;
  gap: 4px;
  flex-wrap: wrap;
}

.snippet-tab,
.copy-btn {
  background: transparent;
  border: 0;
  padding: 8px 10px;
  font-size: 13px;
  color: #3d4f66;
  border-radius: 8px;
  transition: transform 160ms var(--ease), background 160ms ease, color 160ms ease;
}

.snippet-tab.active {
  color: #4338ca;
  background: #eef0ff;
  font-weight: 600;
}

.snippet-tab:active,
.copy-btn:active {
  transform: scale(0.97);
}

.copy-btn {
  margin-left: auto;
  background: #e8eef8;
  color: #12263f;
}

.snippet {
  margin: 0;
  background: #101d3a;
  color: #e4eeff;
  padding: 16px 18px;
  min-height: 0;
  max-height: 340px;
  overflow: auto;
  font: 13px/1.65 var(--mono);
  white-space: pre;
}

.code-note {
  padding: 10px 14px;
  font-size: 13px;
  color: #31456e;
  background: #f7f9fd;
  border-top: 1px solid #e7edf7;
}

.code-note i {
  color: var(--blue);
  margin-right: 6px;
}

.help-panel {
  padding: 18px;
}

.help-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-title-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e7f0ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 16px;
}

.help-panel p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 14px;
}

.help-panel .btn {
  width: 100%;
}

.help-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.help-links a {
  font-size: 14px;
  color: #4338ca;
  text-decoration: none;
  font-weight: 600;
}

.help-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.explore-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}

.explore-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #e6f0ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 18px;
  flex-shrink: 0;
}

.explore-bar strong {
  font-size: 15px;
  white-space: nowrap;
}

.explore-bar>span:nth-of-type(2) {
  color: var(--muted);
  font-size: 14px;
}

.explore-bar>a {
  margin-left: auto;
  text-decoration: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.footer {
  display: flex;
  justify-content: space-between;
  color: #546578;
  font-size: 13px;
  padding: 18px 4px 8px;
}

.footer span:last-child {
  display: flex;
  gap: 16px;
}

.footer a,
.footer button {
  color: #3d4f66;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
}

.footer a:hover,
.footer button:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-results {
  position: fixed;
  z-index: 100;
  top: 64px;
  left: calc(var(--sidebar) + 28px);
  width: min(640px, calc(100vw - var(--sidebar) - 56px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(11, 27, 51, 0.16);
  padding: 8px;
}

.search-result {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #12263f;
  font-size: 14px;
}

.search-result:hover {
  background: #eef0ff;
}

.search-result i {
  color: var(--blue);
}

#toast-container .toast-message {
  position: static;
  opacity: 1;
  transform: none;
  background: transparent;
  padding: 0;
  box-shadow: none;
  pointer-events: auto;
}

.collapsed .sidebar {
  width: 84px;
}

.collapsed .main-area {
  margin-left: 84px;
}

.collapsed .brand span:last-child {
  display: none;
}

.collapsed .brand-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: left center;
}

.collapsed .brand-row {
  justify-content: center;
  padding: 0;
}

.collapsed .sidebar-collapse {
  display: none;
}

.collapsed .nav-heading,
.collapsed .nav-link span,
.collapsed .help-copy,
.collapsed .sidebar-footer>a,
.collapsed .sidebar-footer>button,
.collapsed .user-card-copy {
  display: none;
}

.collapsed .user-card {
  margin: 12px 10px 0;
  padding: 8px;
  justify-content: center;
}

.collapsed .nav-link {
  justify-content: center;
  padding: 8px;
}

.collapsed .sidebar-footer {
  justify-content: center;
}

html.is-quick-start #heroBanner,
html.is-quick-start .quick-grid,
html.is-quick-start .explore-bar {
  display: none;
}

html.is-quick-start .dashboard-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

html.is-quick-start .dashboard-grid>* {
  min-width: 0;
}

html.is-quick-start .integration-panel {
  background: radial-gradient(520px 200px at 100% 0%, rgba(91, 77, 255, 0.38), transparent 70%), #0b1b33;
  color: #fff;
  border: 0;
  padding: 22px;
}

html.is-quick-start .integration-panel h3 {
  color: #fff;
  font-size: 22px;
}

html.is-quick-start .step-progress {
  background: rgba(255, 255, 255, 0.14);
  color: #e7efff;
}

html.is-quick-start .steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

html.is-quick-start .step {
  flex-direction: column;
  min-height: 0;
  gap: 10px;
}

html.is-quick-start .step:not(:last-child)::before {
  left: 36px;
  top: 15px;
  bottom: auto;
  width: calc(100% - 20px);
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

html.is-quick-start .step b {
  color: #fff;
}

html.is-quick-start .step p {
  color: #d5e2f8;
}

html.is-quick-start .snippet {
  max-height: none;
  background: #0c1733;
}

html.is-quick-start .help-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}

html.is-quick-start .help-panel p {
  margin: 0;
  flex: 1;
}

html.is-quick-start .help-panel .btn {
  width: auto;
  margin-left: auto;
}

html.is-quick-start .help-links {
  display: none;
}

html.is-quick-start .status-live span {
  box-shadow: none;
}

.dark-mode {
  --canvas: #0e1524;
  --surface: #162033;
  --navy: #e8eefc;
  --ink: #e8eefc;
  --muted: #c5d2ea;
  --line: #2a3a56;
  background: #0e1524;
  color: #e8eefc;
}

.dark-mode .user-card {
  background: #1c2942;
  border-color: #2a3a56;
}

.dark-mode .user-env {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .sidebar,
.dark-mode .topbar,
.dark-mode .panel,
.dark-mode .quick-card,
.dark-mode .api-status,
.dark-mode .explore-bar,
.dark-mode .search-results {
  background: #162033;
  border-color: #2a3a56;
  color: #e8eefc;
}

.dark-mode .brand,
.dark-mode .page-heading h1,
.dark-mode .page-heading h2,
.dark-mode .panel-heading h3,
.dark-mode .help-title h3,
.dark-mode .quick-card,
.dark-mode .breadcrumb span {
  color: #f4f7ff;
}

.dark-mode .search-box,
.dark-mode .snippet-tabs {
  background: #1c2942;
  border-color: #2a3a56;
}

.dark-mode .search-box input,
.dark-mode .search-box input::placeholder,
.dark-mode .nav-link,
.dark-mode .nav-heading,
.dark-mode .page-heading p,
.dark-mode .panel-heading p,
.dark-mode .step p,
.dark-mode .quick-card small,
.dark-mode .help-panel p,
.dark-mode .code-note,
.dark-mode .footer,
.dark-mode .footer a,
.dark-mode .footer button {
  color: #c5d2ea;
}

.dark-mode .nav-link.active {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .side-nav .nav-link.is-danger,
.dark-mode .side-nav .nav-link.is-danger i {
  color: #ffb4a8;
}

.dark-mode .side-nav .nav-link.is-danger:hover,
.dark-mode .side-nav .nav-link.is-danger:hover i {
  background: #3a2424;
  color: #ffb4a8;
}

.dark-mode .quick-card:first-child {
  background: #1a2c4a;
  border-color: #34548a;
}

.dark-mode .hero-banner {
  background: linear-gradient(115deg, #15243d 0%, #1a3158 58%, #1d4ed8 160%);
  border-color: #2a3a56;
}

.dark-mode .hero-copy h2 {
  color: #f4f7ff;
}

.dark-mode .hero-copy p {
  color: #d5e2f8;
}

.dark-mode .btn-outline-primary {
  color: #d6e6ff;
  border-color: #6b93d6;
  background: rgba(16, 29, 58, 0.35);
}

.dark-mode .notification-dot {
  border-color: #162033;
}

.dark-mode .icon-btn {
  color: #d5e2f8;
}

.dark-mode .icon-btn:hover {
  background: #243656;
}

html.is-quick-start.dark-mode .integration-panel,
.dark-mode html.is-quick-start .integration-panel,
html.is-quick-start body.dark-mode .integration-panel {
  background: radial-gradient(520px 200px at 100% 0%, rgba(91, 77, 255, 0.28), transparent 70%), #0c1730;
  border: 1px solid #2a3a56;
}

@media (prefers-reduced-motion: reduce) {
  html.is-quick-start .status-live span {
    animation: none;
  }

  .sidebar,
  .main-area,
  .btn,
  .quick-card,
  .zainbox-card {
    transition: none;
  }

  .bone {
    animation: none;
  }
}

@media (max-width: 1280px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .quick-card:first-child {
    grid-column: span 1;
  }

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

  .help-panel {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .help-panel p {
    margin: 0;
    flex: 1;
  }

  .help-panel .btn {
    width: auto;
  }

  .help-links {
    display: none;
  }

  .hero-copy {
    width: 54%;
    padding: 28px;
  }

  .hero-copy h2 {
    font-size: 36px;
  }

  .phone-mock {
    right: 16px;
  }
}

@media (max-width: 1100px) {
  html.is-quick-start .steps {
    display: block;
  }

  html.is-quick-start .step {
    flex-direction: row;
    min-height: 68px;
  }

  html.is-quick-start .step:not(:last-child)::before {
    left: 15px;
    top: 34px;
    bottom: 0;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 860px) {
  .sidebar {
    transform: translateX(-105%);
    width: 280px;
    box-shadow: 12px 0 28px rgba(11, 27, 51, 0.16);
  }

  .sidebar.mobile-open {
    transform: none;
  }

  .main-area,
  .collapsed .main-area {
    margin-left: 0;
  }

  .mobile-menu {
    display: inline-grid;
  }

  .sidebar-collapse {
    display: none;
  }

  .topbar {
    padding: 0 14px;
    height: 64px;
  }

  .profile-copy,
  .profile>i,
  .search-box kbd {
    display: none;
  }

  .content-wrap {
    padding: 18px 14px 16px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-heading-mark {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .api-status {
    width: 220px;
  }

  .hero-banner {
    min-height: 280px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero-art {
    display: none;
  }

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

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

  .help-panel {
    display: block;
  }

  .help-panel p {
    margin: 12px 0;
  }

  .help-panel .btn {
    width: 100%;
  }

  .help-links {
    display: flex;
  }

  html.is-quick-start .help-panel {
    display: block;
  }

  html.is-quick-start .help-panel .btn {
    width: 100%;
    margin-left: 0;
  }

  html.is-quick-start .help-links {
    display: flex;
  }

  .search-results {
    left: 14px;
    width: calc(100vw - 28px);
  }

  .explore-bar {
    flex-wrap: wrap;
  }

  .explore-bar>span:nth-of-type(2) {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .page-heading {
    display: block;
  }

  .page-heading h1 {
    font-size: 30px;
  }

  .page-heading-mark {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .api-status {
    width: 100%;
    margin-top: 14px;
  }

  .hero-copy {
    padding: 22px 18px;
  }

  .hero-copy h2 {
    font-size: 32px;
  }

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

  .footer {
    flex-direction: column;
    gap: 8px;
  }

  html.is-quick-start .page-heading h1 {
    font-size: 30px;
  }

  .records-filters {
    width: 100%;
  }
}

.notification-btn {
  position: relative;
}

button.profile {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.account-menu,
.notify-menu {
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 36px rgba(11, 27, 51, 0.16);
}

.account-menu .dropdown-item,
.notify-menu .dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #12263f;
  white-space: normal;
}

.account-menu .dropdown-item i,
.notify-menu .dropdown-item i {
  color: var(--blue);
  margin-top: 2px;
}

.account-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 4px;
}

.account-menu-head strong,
.account-menu-head small {
  display: block;
}

.account-menu-head small {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.account-menu .dropdown-item.is-danger,
.account-menu .dropdown-item.is-danger i {
  color: #9f2d20;
}

.account-menu .dropdown-item.is-danger:hover,
.account-menu .dropdown-item.is-danger:focus {
  background: #fde8e6;
  color: #9f2d20;
}

.field-note,
.form-error {
  font-size: 13px;
  margin: 0 0 4px;
}

.field-note {
  color: var(--muted);
  font-weight: 500;
}

.form-error {
  color: #9f2d20;
  font-weight: 600;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #12263f;
  margin-bottom: 12px;
}

.check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.signed-out:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: rgba(11, 27, 51, 0.46);
  padding: 24px;
}

.signed-out-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(11, 27, 51, 0.16);
}

.signed-out-card .brand-mark {
  margin: 0 auto 14px;
}

.signed-out-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #0b1b33;
}

.signed-out-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.notify-menu .dropdown-item span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.notify-menu .dropdown-item small {
  color: var(--muted);
  font-size: 12px;
}

.notify-menu .dropdown-header {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #546578;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: #eef0ff;
  color: #12263f;
}

.env-switch .select2-container--bootstrap-5 .select2-selection {
  /* min-height: 40px; */
  border-radius: 10px;
  border-color: var(--line);
  font-size: 13px;
  font-weight: 600;
}

.records-panel {
  margin-top: 4px;
}

.records-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.records-filters .select2-container--bootstrap-5 .select2-selection,
.date-filter .flatpickr-input,
.date-filter input {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 13px;
  padding: 8px 12px;
  color: var(--navy);
  background: #fff;
}

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

.records-panel table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.records-panel table.dataTable thead th {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #546578;
  border-bottom-color: var(--line);
}

.records-panel table.dataTable tbody td {
  font-size: 14px;
  color: var(--ink);
  vertical-align: middle;
  border-color: #e4eaf2;
}

.dt-container .dt-search input {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 12px;
  margin-left: 0;
  font-size: 14px;
}

.dt-container .dt-search label {
  font-size: 0;
}

.dt-container .dt-info {
  font-size: 13px;
  color: var(--muted);
  padding-top: 12px;
}

.dt-container .pagination {
  margin: 12px 0 0;
}

.page-link {
  color: #12327a;
  border-color: var(--line);
}

.page-item.active .page-link {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.status-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill.is-ok {
  background: #d8f6e8;
  color: #0b7a45;
}

.status-pill.is-wait {
  background: #fff1d6;
  color: #8a4b00;
}

.status-pill.is-bad {
  background: #fde8e6;
  color: #9f2d20;
}

.modal-content {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.field input,
.field textarea,
.field select {
  background-color: #fff;
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #0b1b33;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4f66;
  margin-bottom: 12px;
}

.field input,
.field textarea,
.field select,
.field .select2-container--bootstrap-5 .select2-selection {
  width: 100%;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 37px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--navy);
  background-color: #fff;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233c5278' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
}

.field input:disabled,
.field select:disabled {
  opacity: 1;
  color: var(--navy);
  -webkit-text-fill-color: var(--navy);
  background-color: #f4f7fb;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
}

html.is-records #heroBanner,
html.is-records .quick-grid,
html.is-records .dashboard-grid,
html.is-records .explore-bar,
html.is-dashboard #heroBanner,
html.is-dashboard .quick-grid,
html.is-dashboard .dashboard-grid,
html.is-dashboard .explore-bar,
html.is-dashboard .page-heading,
html:not(.is-dashboard) #opsDashboard {
  display: none;
}

.customer-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.customer-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.account-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.account-facet {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
}

.account-facet small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-facet b {
  display: block;
  margin: 2px 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.account-facet span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.customer-top h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #0b1b33;
}

.customer-top p {
  margin: 6px 0 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 14px;
}

.balance-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.balance-grid .panel {
  height: 100%;
}

.balance-hero {
  background: #0b1b33;
  color: #fff;
  border: 0;
}

.balance-hero small,
.balance-stat small {
  display: block;
  font-size: 13px;
}

.balance-hero small,
.balance-hero span {
  color: #d5e2f8;
}

.balance-hero strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #fff;
}

.balance-hero .spinner-border {
  width: 1.25rem;
  height: 1.25rem;
  border-width: 0.16em;
  color: #fff;
}

.balance-stat small,
.balance-stat span {
  color: var(--muted);
}

.balance-stat strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0b1b33;
}

.balance-stat span,
.balance-hero span {
  display: block;
  font-size: 13px;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.75fr) minmax(220px, 0.75fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.chart-grid .chart-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.chart-grid .chart-frame {
  flex: 1 1 auto;
}

.chart-frame {
  position: relative;
  height: 268px;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.customer-grid .panel {
  height: 100%;
}

.customer-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  height: 100%;
}

.ops-dashboard .menu-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.ops-dashboard .btn-primary.menu-link {
  color: #fff;
}

.ops-dashboard .menu-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ops-dashboard .btn.menu-link:hover {
  text-decoration: none;
}

.ops-dashboard table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.ops-dashboard table.dataTable thead th {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #546578;
  border-bottom-color: var(--line);
}

.ops-dashboard table.dataTable tbody td {
  font-size: 14px;
  color: var(--ink);
  vertical-align: middle;
  border-color: #e4eaf2;
}

.tx-ref {
  display: inline;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.amount-in {
  color: #0b7a45;
  font-weight: 700;
}

.amount-out {
  color: #0b1b33;
  font-weight: 700;
}

.amount-bad {
  color: #9f2d20;
  font-weight: 700;
}

.payout-list {
  display: flex;
  flex-direction: column;
}

.payout-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #e4eaf2;
}

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

.payout-row b,
.payout-row strong {
  display: block;
  font-size: 14px;
}

.payout-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.payout-row .status-pill {
  margin-top: 4px;
}

.dark-mode .customer-top h2,
.dark-mode .balance-stat strong,
.dark-mode .account-facet b {
  color: #f4f7ff;
}

.dark-mode .amount-bad {
  color: #ffb4ae;
}

.dark-mode .amount-out,
.dark-mode .payout-row b,
.dark-mode .payout-row strong {
  color: #f4f7ff;
}

.dark-mode .ops-dashboard table.dataTable tbody td {
  color: #e8eefc;
  border-color: #2a3a56;
}

.dark-mode .ops-dashboard table.dataTable thead th {
  color: #c5d2ea;
}

.dark-mode .payout-row {
  border-top-color: #2a3a56;
}

.dark-mode .balance-hero {
  background: #0c1730;
  border: 1px solid #2a3a56;
}

@media (max-width: 1100px) {
  .balance-grid {
    grid-template-columns: 1fr 1fr;
  }

  .balance-hero {
    grid-column: 1 / -1;
  }

  .account-split,
  .chart-grid,
  .customer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .customer-top {
    display: block;
  }

  .customer-top .btn {
    margin-top: 12px;
  }

  .balance-grid,
  .customer-grid {
    grid-template-columns: 1fr;
  }

  .balance-hero strong {
    font-size: 28px;
  }
}

.dark-mode .account-menu,
.dark-mode .notify-menu,
.dark-mode .modal-content,
.dark-mode .select2-dropdown,
.dark-mode .flatpickr-calendar {
  background: #162033;
  color: #e8eefc;
  border-color: #2a3a56;
}

.dark-mode .dropdown-item,
.dark-mode .modal-title,
.dark-mode .field,
.dark-mode .check-row,
.dark-mode .signed-out-card h2 {
  color: #e8eefc;
}

.dark-mode .signed-out-card {
  background: #162033;
}

.dark-mode .account-menu .dropdown-item.is-danger:hover,
.dark-mode .account-menu .dropdown-item.is-danger:focus {
  background: #3a2430;
  color: #ffd0cb;
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item:focus {
  background: #1d3d72;
  color: #f4f7ff;
}

.dark-mode .field input,
.dark-mode .field textarea,
.dark-mode .field select,
.dark-mode .dt-container .dt-search input,
.dark-mode .date-filter input,
.dark-mode .select2-container--bootstrap-5 .select2-selection {
  background-color: #1c2942;
  color: #e8eefc;
  border-color: #2a3a56;
}

.dark-mode .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23c5d2ea' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
}

.dark-mode .field input:disabled,
.dark-mode .field select:disabled {
  background-color: #1c2942;
  color: #e8eefc;
  -webkit-text-fill-color: #e8eefc;
}

.dark-mode .records-panel table.dataTable tbody td {
  color: #e8eefc;
  border-color: #2a3a56;
}

.dark-mode .records-panel table.dataTable thead th {
  color: #c5d2ea;
}

.dark-mode .page-link {
  background: #1c2942;
  color: #d6e6ff;
  border-color: #2a3a56;
}

.dark-mode .page-item.active .page-link {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.dark-mode .flatpickr-day {
  color: #e8eefc;
}

.dark-mode .flatpickr-day.selected {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.dark-mode .select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted {
  background: #1d3d72;
  color: #f4f7ff;
}

@media (max-width: 860px) {
  .env-switch {
    display: none;
  }
}

.account-menu a.dropdown-item {
  text-decoration: none;
}

.account-menu form {
  margin: 0;
}

.account-menu form .dropdown-item {
  width: 100%;
  text-align: left;
}

#toast-container>div {
  border-radius: 12px;
  box-shadow: var(--shadow);
  opacity: 1;
  font-family: inherit;
}

#toast-container>.toast-success {
  background-color: #0b7a45;
}

#toast-container>.toast-error {
  background-color: #9f2d20;
}

.zainbox-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.zainbox-toolbar .field {
  margin: 0;
  min-width: 0;
  flex: 1 1 240px;
}

.zainbox-toolbar .zainbox-search {
  flex: 1 1 320px;
}

.zainbox-toolbar .zainbox-status,
.zainbox-toolbar .zainbox-sort {
  flex: 0 1 190px;
}

.zainbox-toolbar .zainbox-view {
  align-self: end;
}

.zainbox-toolbar .zainbox-view button.is-on {
  background: var(--blue);
  color: #fff;
}

.zainbox-toolbar-card {
  margin-bottom: 14px;
  padding: 14px 16px;
}

.zainbox-toolbar-card .zainbox-toolbar {
  margin-bottom: 0;
}

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

.zainbox-overview .kpi-card {
  grid-template-columns: minmax(0, 1fr) 112px;
}

.zainbox-overview .rate-ring {
  width: 68px;
  height: 68px;
}

.zainbox-overview .summary-kpi {
  margin: 0;
}

.zainbox-overview .summary-kpi strong {
  font-variant-numeric: tabular-nums;
}

.zainbox-stat-spinner {
  width: 0.9rem;
  height: 0.9rem;
  border-width: 0.15em;
  color: var(--blue);
  vertical-align: -0.125em;
}

.zainbox-inline-loading {
  display: none;
  justify-content: center;
  padding: 28px 0;
}

.summary-kpi-icon.is-violet {
  background: #f3e8ff;
  color: #7a3ff2;
}

.summary-kpi-icon.is-slate {
  background: #eef2f6;
  color: #5c6b82;
}

.zainbox-view {
  display: flex;
  align-self: end;
  height: 37px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.zainbox-view button {
  width: 38px;
  border: 0;
  background: transparent;
  color: #5c6b82;
}

.zainbox-view button.is-on {
  background: #eef0ff;
  color: var(--blue);
}

.zainbox-view button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}

.dashboard-range button {
  width: auto;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
}

.dashboard-chart-loading {
  display: grid;
  place-items: center;
  min-height: 120px;
  color: var(--muted);
}

.balance-hero .bone {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.42) 45%, rgba(255, 255, 255, 0.18) 100%);
  background-size: 220% 100%;
}

.balance-hero .bone-kpi,
.balance-stat .bone-kpi {
  width: 120px;
  height: 28px;
}

.chart-frame .bone-chart {
  height: 100%;
}

.dashboard-activity-skeleton {
  display: grid;
  gap: 14px;
  padding: 8px 0 16px;
}

.dashboard-activity-skeleton .bone-line:nth-child(even) {
  width: 72%;
}

.dashboard-figures,
.dashboard-breakdown,
.zainbox-inline-stats,
.zainbox-card-stats .zainbox-inline-stats,
.zainbox-overview .zainbox-inline-stats,
.zainbox-table .zainbox-inline-stats,
.summary-kpis .zainbox-inline-stats {
  display: contents;
}

.dashboard-empty {
  margin: 0;
  padding: 8px 4px 16px;
  color: var(--muted);
}

.zainbox-toolbar .field input,
.zainbox-toolbar .field select {
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 37px;
  padding: 6px 12px;
  font-size: 14px;
  color: var(--navy);
  background-color: #fff;
}

.zainbox-toolbar .field select {
  padding-right: 36px;
}

.zainbox-table {
  width: 100%;
  border-collapse: collapse;
}

.zainbox-table th {
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #546578;
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.zainbox-table td {
  font-size: 14px;
  color: var(--ink);
  padding: 12px 10px;
  border-bottom: 1px solid #e4eaf2;
  vertical-align: middle;
}

.managers-table-wrap {
  overflow: visible;
}

#managersTable th,
#managersTable td {
  white-space: nowrap;
}

#managersTable td:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.zainbox-code {
  font-family: var(--mono);
  font-size: 13px;
}

.zainbox-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zainbox-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  background: #e7eefc;
  color: #12327a;
}

.zainbox-url {
  display: block;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
}

.zainbox-url:hover {
  color: var(--blue);
}

.zainbox-empty {
  margin: 8px 0 0;
  color: var(--muted);
}

.zainbox-error {
  border-color: #f3c7c2;
  background: #fff7f6;
}

.zainbox-error p {
  margin: 0 0 12px;
}

.zainbox-loading {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

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

.zainbox-card,
.zainbox-stage {
  position: relative;
}

.zainbox-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  padding: 16px;
  border-radius: 20px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.zainbox-card-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border-radius: inherit;
  background: #fff;
}

.zainbox-card:hover {
  border-color: #b7cff6;
  box-shadow: 0 14px 28px rgba(11, 27, 51, 0.1);
}

.zainbox-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.zainbox-card-identity {
  min-width: 0;
  flex: 1;
}

.zainbox-card .zainbox-hero-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  flex: 0 0 auto;
}

.zainbox-card-title {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}

.zainbox-card-title .bi-chevron-right {
  margin-top: 4px;
  color: #8aa0c2;
  font-size: 14px;
}

.zainbox-card-title:hover h3 {
  color: var(--blue);
}

.zainbox-card .status-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
}

.zainbox-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0b1b33;
}

.zainbox-card .zainbox-code {
  display: block;
  margin-top: 2px;
  color: #546578;
  overflow-wrap: anywhere;
}

.zainbox-card-actions {
  margin-left: auto;
}

.zainbox-card-actions > .icon-btn,
.zainbox-card .zainbox-webhook-value .icon-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #e4edf8;
  background: #f8fafc;
  border-radius: 10px;
  color: #5d7296;
  font-size: 15px;
}

.zainbox-card .zainbox-webhook-value .icon-btn {
  color: var(--blue);
}

.zainbox-card-actions .dropdown-menu {
  min-width: 180px;
}

.zainbox-card-actions .dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
}

.zainbox-webhook>span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.zainbox-webhook-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  min-height: 40px;
  padding: 6px 8px 6px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f7f9fc;
}

.zainbox-webhook-value>i {
  color: var(--blue);
}

.zainbox-webhook-value .zainbox-url,
.zainbox-card .zainbox-webhook-value .zainbox-code {
  flex: 1;
  min-width: 0;
  max-width: none;
  margin-top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3d4f66;
}

.zainbox-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin: 2px 0 0;
}

.zainbox-card-stats div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
}

.zainbox-card-stats dt {
  display: contents;
  margin: 0;
  color: #6d7f9e;
  font-size: 12px;
  font-weight: 600;
}

.zainbox-card-stats dt span {
  grid-column: 2;
  grid-row: 1;
  color: #6d7f9e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.zainbox-card-stats dt i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 16px;
}

.zainbox-card-stats .bi-wallet2 {
  background: #e8f8ef;
  color: #16a34a;
}

.zainbox-card-stats .bi-clock {
  background: #fff1e6;
  color: #ea580c;
}

.zainbox-card-stats .bi-calendar3 {
  background: #f3e8ff;
  color: #7c3aed;
}

.zainbox-card-stats dd {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: #0b1b33;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: left;
  overflow-wrap: anywhere;
}

.zainbox-card-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.zainbox-card-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 700;
}

.zainbox-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
}

.zainbox-table .zainbox-name,
.zainbox-table .zainbox-code {
  display: block;
}

.zainbox-table .zainbox-name {
  color: #0b1b33;
  font-weight: 700;
  text-decoration: none;
}

.zainbox-table .zainbox-name:hover {
  color: var(--blue);
}

.zainbox-actions-heading,
.zainbox-row-actions {
  text-align: right;
}

.zainbox-row-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.zainbox-stage {
  overflow: visible;
}

.zainbox-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

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

.zainbox-pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.zainbox-page {
  min-width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #0b1b33;
  font-size: 14px;
  font-weight: 700;
}

.zainbox-page.is-on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.dark-mode .zainbox-card-loading {
  background: #162033;
}

.zainbox-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.zainbox-hero-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zainbox-hero-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef0ff;
  color: var(--blue);
  font-size: 18px;
}

.zainbox-hero h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: #0b1b33;
}

.zainbox-name-bone {
  width: 320px;
  height: 28px;
  border-radius: 8px;
}

.zainbox-status-bone {
  width: 72px;
  height: 26px;
  border-radius: 999px;
}

.zainbox-crumb-bone {
  width: 220px;
  height: 14px;
}

.zainbox-hero p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.zainbox-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.summary-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-kpis,
.summary-main {
  display: grid;
  gap: 12px;
}

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

.summary-kpis .kpi-card {
  grid-template-columns: minmax(0, 1fr) 72px;
  min-height: 132px;
}

.summary-kpis .rate-ring {
  width: 64px;
  height: 64px;
  grid-row: 2 / span 2;
}

.summary-balance-open {
  grid-column: 2;
  grid-row: 2 / span 2;
  justify-self: end;
  align-self: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #546578;
  display: grid;
  place-items: center;
}

.summary-balance-open:hover {
  background: #eef0ff;
  color: var(--blue);
}

.summary-chart-legend {
  margin: 0 0 8px;
  justify-content: flex-start;
}

.summary-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.summary-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
}

.summary-state.is-on i {
  background: #16a34a;
}

.summary-billing-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f4f7ff;
  color: #546578;
  font-size: 13px;
}

.summary-billing-note a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.summary-billing-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-main {
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  align-items: stretch;
}

.summary-kpis .gs-stat,
.summary-main .gs-panel {
  height: 100%;
}

.gs-stat .kpi-spark {
  width: 72px;
  min-width: 72px;
  height: 44px;
  flex: 0 0 72px;
  margin-left: auto;
}

.gs-stat .rate-ring {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  margin-left: auto;
}

.summary-main .gs-panel {
  display: flex;
  flex-direction: column;
}

.summary-main .chart-frame,
.summary-main .table-wrap,
.summary-main .summary-config,
.summary-main .zainbox-empty {
  flex: 1 1 auto;
}

.summary-main .chart-frame,
.summary-main .zainbox-empty {
  min-height: 220px;
}

.summary-main .zainbox-empty {
  display: grid;
  place-items: center;
  margin: 0;
}

.summary-kpi {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.summary-kpi p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.summary-kpi strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #0b1b33;
}

.summary-kpi small,
.summary-change {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.summary-change.is-up {
  color: #0b7a45;
  font-weight: 700;
}

.summary-change.is-down {
  color: #9f2d20;
  font-weight: 700;
}

.summary-kpi-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.summary-kpi-icon.is-blue {
  background: #eef0ff;
  color: var(--blue);
}

.summary-kpi-icon.is-green {
  background: #e7f8ef;
  color: #0b7a45;
}

.summary-kpi-icon.is-amber {
  background: #fff4df;
  color: #9a6700;
}

.summary-ring {
  margin-left: auto;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(#12b76a calc(var(--share) * 1%), #e7f8ef 0);
  flex: 0 0 auto;
}

.summary-ring span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #0b1b33;
}

.summary-chart {
  height: auto;
  min-height: 220px;
}

.summary-chart .bone-chart {
  height: 220px;
}

.summary-range-field {
  width: 168px;
  margin: 0;
  flex: 0 0 auto;
}

.summary-config {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-config li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.summary-config li>i {
  color: var(--blue);
  margin-top: 2px;
}

.summary-config li div {
  min-width: 0;
  flex: 1;
}

.summary-config span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.summary-config b,
.summary-config a {
  display: block;
  margin-top: 2px;
  color: #0b1b33;
  font-size: 14px;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.summary-config a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.summary-config .icon-btn {
  margin-left: auto;
}

.summary-config-edit {
  width: 100%;
  margin-top: auto;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.summary-link {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  padding: 0;
}

.summary-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.dark-mode .zainbox-hero h1,
.dark-mode .summary-kpi strong,
.dark-mode .summary-config b,
.dark-mode .summary-ring span {
  color: #f4f7ff;
}

.dark-mode .page-heading-actions .btn.is-active {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .page-heading-mark,
.dark-mode .zainbox-hero-mark,
.dark-mode .summary-kpi-icon.is-blue {
  background: #1d3d72;
  color: #9ec2ff;
}

.dark-mode .summary-kpi-icon.is-green {
  background: #163828;
  color: #8ee0b2;
}

.dark-mode .summary-kpi-icon.is-amber {
  background: #3a2d12;
  color: #f0c36a;
}

.dark-mode .summary-ring {
  background: conic-gradient(#3dbe7a calc(var(--share) * 1%), #163828 0);
}

.dark-mode .summary-ring span {
  background: #162033;
}

.dark-mode .summary-config a {
  color: #d6e6ff;
}

.zainbox-tabs {
  flex-wrap: nowrap;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding: 6px;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(23, 43, 92, 0.05);
}

.zainbox-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 8px 14px;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  background: transparent;
}

.zainbox-tabs .nav-link i {
  font-size: 15px;
}

.zainbox-settings-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.zainbox-settings-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eef3f9;
}

.zainbox-settings-list li:first-child {
  border-top: 0;
  padding-top: 4px;
}

.zainbox-settings-list b {
  display: block;
  color: #0b1b33;
  font-size: 14px;
}

.zainbox-settings-list p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 13px;
}

.setting-switch {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  background: #d5deec;
  padding: 0;
}

.setting-switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 27, 51, 0.2);
  transition: transform 160ms var(--ease);
}

.setting-switch.is-on {
  background: var(--blue);
}

.setting-switch.is-on span {
  transform: translateX(18px);
}

.setting-switch:disabled {
  opacity: 0.6;
}

.setting-switch:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.zainbox-tabs .nav-link:hover,
.zainbox-tabs .nav-link:focus {
  color: #0f2744;
}

.zainbox-tabs .nav-link.active {
  color: #5b4dff;
  background: #eef0ff;
}

.zainbox-tabs .nav-link:disabled {
  opacity: 0.55;
}

.zainbox-skeleton {
  margin-bottom: 12px;
}

.bone-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.bone-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.bone {
  display: block;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #e6edf6 0%, #f8fafc 45%, #e6edf6 100%);
  background-size: 220% 100%;
  animation: bone-shimmer 1.2s ease-in-out infinite;
}

.bone-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
}

.bone-label {
  width: 42%;
  height: 10px;
}

.bone-value {
  width: 70%;
  height: 22px;
}

.bone-title {
  width: 38%;
  height: 16px;
}

.bone-line {
  width: 100%;
  height: 18px;
}

.bone-chart {
  width: 100%;
  height: 220px;
  border-radius: 12px;
}

.bone-field {
  width: 160px;
  height: 42px;
  border-radius: 10px;
}

.bone-button {
  width: 108px;
  height: 42px;
  border-radius: 10px;
}

.bone-kpi {
  width: 96px;
  height: 22px;
}

.bone-code {
  width: 78%;
  height: 16px;
}

.bone-stat {
  width: 72px;
  height: 14px;
  margin-left: auto;
}

.zainbox-card-skeleton {
  pointer-events: none;
}

.zainbox-card-skeleton .zainbox-card-stats {
  display: grid;
  gap: 12px;
}

.zainbox-card-skeleton .zainbox-card-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.zainbox-row-skeleton {
  display: grid;
  gap: 8px;
  padding: 6px 0;
}

@keyframes bone-shimmer {
  0% {
    background-position: 100% 0;
  }

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

.dark-mode .bone {
  background: linear-gradient(90deg, #1c2942 0%, #2a3b58 45%, #1c2942 100%);
  background-size: 220% 100%;
}

.zainbox-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  margin: 0;
}

.zainbox-facts div {
  min-width: 0;
}

.zainbox-facts dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.zainbox-facts dd {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.zainbox-facts .zainbox-url {
  max-width: none;
  white-space: normal;
}

.zainbox-stat-text {
  font-size: 15px !important;
  letter-spacing: -0.02em !important;
  overflow-wrap: anywhere;
}

.zainbox-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 27, 51, 0.46);
}

.zainbox-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 820px);
  overflow: auto;
}

.zainbox-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

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

.split-accounts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(88px, 0.7fr) minmax(88px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.split-row .field {
  margin-bottom: 0;
}

.split-row .form-error {
  grid-column: 1 / -1;
}

.split-remove {
  align-self: end;
}

.split-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.split-footer .check-row {
  margin: 0;
}

@media (max-width: 980px) {

  .split-grid,
  .split-row {
    grid-template-columns: 1fr;
  }
}

.zainbox-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.field-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 12px;
}

.dark-mode .zainbox-toolbar .field input,
.dark-mode .zainbox-toolbar .field select,
.dark-mode .zainbox-view,
.dark-mode .zainbox-page,
.dark-mode .zainbox-webhook-value {
  background-color: #1c2942;
  color: #e8eefc;
  border-color: #2a3a56;
}

.dark-mode .summary-kpi-icon.is-violet {
  background: #2c2150;
  color: #d2b4ff;
}

.dark-mode .summary-kpi-icon.is-slate {
  background: #243044;
  color: #c5d2ea;
}

.dark-mode .zainbox-view button {
  color: #c5d2ea;
}

.dark-mode .zainbox-view button.is-on {
  background: #1d3d72;
  color: #9ec2ff;
}

.dark-mode .zainbox-webhook-value .zainbox-url,
.dark-mode .zainbox-card-stats dd,
.dark-mode .zainbox-page {
  color: #e8eefc;
}

.dark-mode .zainbox-page.is-on {
  background: var(--blue);
  color: #fff;
}

.dark-mode .zainbox-table td,
.dark-mode .zainbox-table .zainbox-name {
  color: #e8eefc;
  border-color: #2a3a56;
}

.dark-mode .zainbox-table th {
  color: #c5d2ea;
}

.dark-mode .zainbox-tag {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .zainbox-error {
  background: #2a1c22;
  border-color: #6b3030;
}

.dark-mode .zainbox-card h3,
.dark-mode .zainbox-facts dd {
  color: #e8eefc;
}

.dark-mode .zainbox-card .zainbox-code {
  color: #c5d2ea;
}

.dark-mode .zainbox-card:hover {
  border-color: #3d5f99;
}

.dark-mode .zainbox-card-meta {
  border-top-color: #2a3a56;
}

@media (max-width: 1100px) {

  .summary-kpis,
  .zainbox-overview,
  .zainbox-grid,
  .payout-account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .zainbox-hero {
    flex-direction: column;
  }

  .summary-kpis,
  .summary-main,
  .zainbox-overview,
  .zainbox-grid,
  .payout-account-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {

  .zainbox-toolbar .zainbox-status,
  .zainbox-toolbar .zainbox-sort {
    flex-basis: 100%;
  }

  .page-heading-actions {
    flex-wrap: wrap;
  }

  .zainbox-card-buttons,
  .zainbox-pager {
    grid-template-columns: 1fr;
    display: grid;
  }

  .zainbox-pager-controls {
    justify-content: flex-end;
  }
}

.dark-mode .summary-balance-open {
  color: #c5d2ea;
}

.dark-mode .summary-balance-open:hover {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .summary-billing-note {
  background: #1c2942;
  color: #c5d2ea;
}

.dark-mode .zainbox-tabs {
  background: #162033;
  border-color: #2a3a56;
}

.dark-mode .zainbox-tabs .nav-link {
  color: #c5d2ea;
}

.dark-mode .zainbox-tabs .nav-link:hover,
.dark-mode .zainbox-tabs .nav-link:focus,
.dark-mode .zainbox-tabs .nav-link.active {
  color: #f4f7ff;
}

.dark-mode .zainbox-tabs .nav-link.active {
  background: #1d3d72;
  color: #9ec2ff;
}

.dark-mode .zainbox-settings-list li {
  border-top-color: #2a3a56;
}

.dark-mode .zainbox-settings-list b {
  color: #f4f7ff;
}

.dark-mode .zainbox-settings-list p {
  color: #9aabc4;
}

.dark-mode .setting-switch {
  background: #2a3a56;
}

.dark-mode .zainbox-card-actions .dropdown-item {
  color: #e8eefc;
}

.form-panel {
  max-width: 480px;
}

.form-panel .btn {
  margin-top: 4px;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(1100px 460px at 10% -8%, rgba(91, 77, 255, 0.1), transparent 58%),
    radial-gradient(900px 420px at 96% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
    var(--canvas);
}

.login-card {
  width: min(440px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-brand {
  margin-bottom: 18px;
}

.login-card h1 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
  color: #0b1b33;
}

.login-card>p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.login-submit {
  width: 100%;
}

.login-alt {
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
}

.manager-permissions {
  border: 0;
  margin: 4px 0 16px;
  padding: 0;
}

.manager-permissions legend {
  float: none;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  padding: 0;
}

.manager-permissions .field-note {
  margin: 0 0 10px;
}

.nav-link.is-zainbox {
  min-width: 0;
}

.nav-link.is-zainbox span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-note {
  margin: 0;
  padding: 2px 12px 8px;
  color: #64748b;
  font-size: 13px;
}

.manager-zainbox-field .select2-container--bootstrap-5 .select2-selection--multiple {
  height: auto;
  min-height: 42px;
  padding: 4px 8px;
  background-image: none;
}

.manager-zainbox-field .select2-container--bootstrap-5 .select2-selection--multiple .select2-search__field {
  font-weight: 500;
  margin-top: 6px;
  width: 100% !important;
}

.zainbox-picks {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zainbox-picks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 6px 6px 6px 12px;
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  background: #f8f7ff;
  color: #0b1b33;
  font-weight: 600;
}

.zainbox-picks .icon-btn {
  width: 32px;
  height: 32px;
  color: #64748b;
}

.zainbox-modal .select2-container--open,
.select2-container--open {
  z-index: 2000;
}

.login-card .field-note {
  margin-top: 14px;
}

.tab-content {
  background: transparent;
  padding: 0;
}

button.gs-stat {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.app-shell {
  display: flex;
  flex-direction: column;
  /* background:
    radial-gradient(1100px 420px at 8% -12%, rgba(91, 77, 255, 0.07), transparent 58%),
    radial-gradient(900px 380px at 100% 0%, rgba(37, 99, 235, 0.06), transparent 55%),
    #f4f7fb; */
}

.app-frame {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: stretch;
}

.app-shell .topbar {
  height: 68px;
  flex-shrink: 0;
  padding: 0 18px 0 20px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e6edf6;
  box-shadow: 0px 0px 28px rgb(21 1 251 / 9%);
}

.app-shell .brand-logo {
  height: 32px;
}

.app-shell .search-box {
  max-width: 520px;
  min-height: 40px;
  border-radius: 999px;
  background: #fff;
  border-color: #e4ecf6;
  box-shadow: 0 1px 2px rgba(16, 40, 90, 0.04);
}

.app-shell .sidebar {
  position: sticky;
  align-self: flex-start;
  inset: 68px auto auto auto;
  width: 248px;
  height: calc(100vh - 68px);
  max-height: calc(100vh - 68px);
  min-height: 0;
  background: transparent;
  border-right: 0;
  padding: 10px 12px 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.app-shell .main-area {
  margin-left: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 68px);
}

.app-shell .content-wrap {
  max-width: none;
  padding: 22px 22px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.app-shell .side-nav {
  padding: 4px 4px 12px;
  min-height: 0;
  overflow-y: auto;
}

.app-shell .nav-link {
  min-height: 40px;
  border-radius: 12px;
  color: #3d4f66;
  font-size: 14px;
}

.app-shell .nav-link.active {
  background: #fff;
  color: var(--blue);
  box-shadow:
    0 1px 2px rgba(11, 27, 51, 0.04),
    0 8px 20px rgba(91, 77, 255, 0.12);
}

.app-shell .nav-heading {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #546578;
}

.help-card {
  position: relative;
  margin-top: auto;
  background: #eaf2ff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  overflow: hidden;
  min-height: 118px;
}

.help-card strong {
  display: block;
  font-size: 14px;
  color: #0b1b33;
}

.help-card p {
  margin: 2px 0 12px;
  font-size: 12px;
  color: #546578;
}

.help-support {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #d7e4f6;
  color: #12327a;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.help-support:hover {
  background: #f7faff;
  color: #4338ca;
}

.help-art {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 92px;
  height: 76px;
}

.env-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.env-dot {
  position: absolute;
  left: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 3px rgba(18, 183, 106, 0.18);
  z-index: 3;
  pointer-events: none;
}

.env-switch .select2-container--bootstrap-5 .select2-selection {
  border-radius: 999px;
  min-height: 36px;
  border-color: #e3ebf6;
  background: #fff;
}

.env-switch .select2-container--bootstrap-5 .select2-selection__rendered {
  padding-left: 28px !important;
  /* line-height: 34px; */
  font-weight: 600;
  color: #12263f;
}

.notify-empty {
  margin: 0;
  padding: 8px 16px 12px;
  color: #546578;
  font-size: 13px;
}

.app-shell .footer {
  margin-top: auto;
  padding: 18px 2px 4px;
  font-size: 12px;
  color: #5c7194;
}

.footer-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #12b76a;
  display: inline-block;
  margin-right: 6px;
}

.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-hero > div:first-child {
  min-width: 0;
  flex: 1;
}

.dash-hero h1,
.dash-hero h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #0b1b33;
}

.dash-hero .page-heading-mark {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.dash-hero p {
  margin: 4px 0 0;
  color: #546578;
  font-size: 14px;
}

.range-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e3ebf6;
  background: #fff;
  color: #12263f;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(16, 40, 90, 0.04);
}

.range-pill .bi-chevron-down {
  font-size: 11px;
  color: #546578;
}

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

.dashboard-figures {
  display: contents;
}

.ops-dashboard .panel {
  border-radius: 10px;
  border-color: #e4eaf2;
  box-shadow: 0 10px 28px rgba(23, 43, 92, 0.05);
}

.ops-dashboard .panel-heading {
  flex-wrap: wrap;
}

.kpi-card {
  position: relative;
  min-height: 124px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  column-gap: 8px;
  align-items: center;
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: -10px;
  grid-column: 1 / -1;
}

.kpi-top small,
.kpi-note,
.kpi-delta.is-flat {
  color: #546578;
  font-size: 13px;
  font-weight: 600;
}

.kpi-value {
  display: block;
  grid-column: 1;
  font-size: 26px;
  letter-spacing: -0.04em;
  color: #0b1b33;
  font-variant-numeric: tabular-nums;
}

.kpi-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: -10px 0 0;
  grid-column: 1 / -1;
}

.kpi-delta {
  font-size: 12px;
  font-weight: 700;
}

.kpi-delta.is-up {
  color: #0b7a45;
}

.kpi-delta.is-down {
  color: #9f2d20;
}

.kpi-note {
  font-size: 12px;
  font-weight: 500;
}

.kpi-spark {
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  min-width: 0;
  height: 44px;
  justify-self: stretch;
  align-self: center;
  pointer-events: none;
}

.kpi-spark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.rate-ring {
  grid-column: 2;
  grid-row: 2;
  width: 54px;
  height: 54px;
  justify-self: end;
}

.rate-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}

.kpi-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 15px;
}

.kpi-icon.is-blue {
  background: #eef0ff;
  color: #5b4dff;
}

.kpi-icon.is-violet {
  background: #f3e8ff;
  color: #7c3aed;
}

.kpi-icon.is-green {
  background: #e7f8ef;
  color: #15803d;
}

.kpi-icon.is-amber {
  background: #fff1d6;
  color: #8a4b00;
}

.gs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px minmax(240px, 280px);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.gs-intro {
  min-width: 0;
}

.gs-intro h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #0d194e;
}

.gs-intro p {
  margin: 0 0 16px;
  max-width: 52ch;
  color: #5c6d8c;
  font-size: 14.5px;
}

.gs-progress-track {
  height: 8px;
  border-radius: 999px;
  background: #e4eaf2;
  overflow: hidden;
}

.gs-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #34d399 0%, #60a5fa 55%, #3b82f6 100%);
}

.gs-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  font-size: 13px;
}

.gs-progress-meta b {
  color: #3d4f66;
  font-weight: 600;
}

.gs-art {
  position: relative;
  width: 168px;
  height: 128px;
  justify-self: center;
  pointer-events: none;
}

.gs-art-glow {
  position: absolute;
  inset: 8px 10px 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 197, 253, 0.55), rgba(219, 234, 254, 0.15) 68%, transparent 72%);
}

.gs-art-card,
.gs-art-sheet {
  position: absolute;
  background: #fff;
  border: 1px solid #e3eefc;
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
}

.gs-art-card {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
}

.gs-art-card .bi-check-circle-fill {
  position: absolute;
  right: -4px;
  bottom: -2px;
  color: #22c55e;
  background: #fff;
  border-radius: 50%;
  font-size: 16px;
}

.gs-art-card-back {
  top: 0;
  left: 4px;
  transform: rotate(-14deg);
}

.gs-art-card-front {
  right: 0;
  bottom: 0;
  transform: rotate(8deg);
}

.gs-art-sheet {
  width: 74px;
  height: 58px;
  border-radius: 14px;
  top: 30px;
  left: 36px;
  padding: 12px 10px;
  display: grid;
  gap: 6px;
}

.gs-art-sheet span {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #dbe7f8;
}

.gs-art-sheet span.is-check {
  width: 70%;
  background: linear-gradient(#dbe7f8, #dbe7f8) 0 0 / calc(100% - 14px) 100% no-repeat, #86efac;
}

.gs-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(160deg, #60a5fa, #5b4dff 58%, #1d4ed8);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}

.gs-mark::before {
  content: "Z";
}

.gs-env,
.gs-stat,
.gs-panel {
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 10px;
  /* box-shadow: 0 10px 28px rgba(23, 43, 92, 0.05); */
  /* box-shadow:0 10px 28px rgb(1 106 251 / 9%); */
  box-shadow: 0px 0px 18px rgb(21 1 251 / 9%);
}

.gs-env {
  padding: 16px 16px 14px;
}

.gs-env-label,
.gs-env-state {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gs-env-label {
  color: #3d4f66;
  font-size: 14px;
  font-weight: 600;
}

.gs-env-label i {
  color: #64748b;
}

.gs-env-state {
  margin: 12px 0 8px;
  color: #15803d;
  font-size: 14px;
  font-weight: 700;
}

.gs-env-state span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.gs-env.is-sandbox .gs-env-state {
  color: #8a4b00;
}

.gs-env.is-sandbox .gs-env-state span {
  background: #d97706;
  box-shadow: 0 0 0 4px rgba(217, 119, 6, 0.16);
}

.gs-env p {
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.gs-env a,
.gs-outline {
  color: #5b4dff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.gs-env a:hover,
.gs-outline:hover {
  color: var(--blue-deep);
}

.gs-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
  align-items: stretch;
}

.gs-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 96px;
  padding: 16px 16px 16px 18px;
  text-decoration: none;
  color: inherit;
}

.gs-stat:hover {
  border-color: #c9ddff;
}

.gs-stat:focus-visible {
  outline: 2px solid #5b4dff;
  outline-offset: 2px;
}

.gs-stat-icon,
.gs-panel-mark,
.gs-help-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.gs-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 18px;
}

.gs-stat-icon.is-green {
  background: #e8f8ef;
  color: #16a34a;
}

.gs-stat-icon.is-amber {
  background: #fff1d6;
  color: #8a4b00;
}

.gs-stat-icon.is-blue {
  background: #eef0ff;
  color: #5b4dff;
}

.gs-stat-icon.is-mint {
  background: #e7f8f4;
  color: #0f9f8a;
}

.gs-stat-icon.is-violet {
  background: #f3e8ff;
  color: #7c3aed;
}

.gs-stat-icon.is-sky {
  background: #e7f6ff;
  color: #0284c7;
}

.gs-stat-icon.is-red {
  background: #fdecec;
  color: #d11a2a;
}

.gs-stat-copy {
  flex: 1;
  min-width: 0;
}

.gs-stat-copy small,
.gs-stat-copy span,
.gs-panel-title p,
.gs-step-copy small {
  display: block;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.gs-stat-copy strong {
  display: block;
  margin: 1px 0;
  color: #0b1b33;
  font-size: 22px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.gs-stat > .bi-chevron-right,
.gs-step > .bi-chevron-right,
.gs-help-links .bi-chevron-right {
  color: #94a3b8;
  font-size: 14px;
}

.gs-error {
  margin-bottom: 14px;
}

.gs-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.gs-body > .gs-panel {
  height: 100%;
}

.gs-panel {
  padding: 16px 16px 8px;
}

.gs-panel.zainbox-card {
  padding: 18px;
}

.gs-panel.zainbox-toolbar-card {
  padding: 14px 16px;
}

.gs-panel.transfer-form,
.payout-workspace > .gs-panel,
.tool-stack > .gs-panel,
.transfer-rail > .gs-panel,
.payout-rail > .gs-panel {
  padding-bottom: 16px;
}

.gs-panel-head,
.gs-panel-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.gs-panel-head {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.gs-panel-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 16px;
}

.gs-panel-mark.is-play {
  background: #eef0ff;
  color: #5b4dff;
}

.gs-panel-mark.is-help {
  background: #efe9ff;
  color: #6d4aff;
}

.gs-panel h2,
.gs-panel h3 {
  margin: 0;
  color: #0b1b33;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gs-panel-title p {
  margin: 2px 0 0;
  font-weight: 500;
}

.gs-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d7e6fb;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  white-space: nowrap;
}

.gs-outline-block {
  justify-content: center;
  width: 100%;
  margin: 12px 0 8px;
}

.gs-steps {
  margin: 0 -4px;
}

.gs-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  background-image: linear-gradient(#eef3f9, #eef3f9);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: calc(100% - 48px) 1px;
  text-decoration: none;
  color: inherit;
}

.gs-step.is-done:has(+ .gs-step.is-done)::before,
.gs-step.is-done:has(+ .gs-step.is-progress)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 41px;
  bottom: -13px;
  width: 2px;
  background: #34d39a;
  z-index: 0;
}

.gs-step.is-done:has(+ .gs-step.is-progress)::before {
  bottom: -4px;
}

.gs-step.is-done:has(+ .gs-step.is-progress) {
  z-index: 1;
}

.gs-step.is-done:has(+ .gs-step.is-progress)::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: -12px;
  z-index: 2;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #5b4dff;
}

.gs-step:hover {
  background-color: #f8f7ff;
}

.gs-step-mark {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 700;
}

.gs-step.is-done .gs-step-mark {
  background: #22c55e;
  color: #fff;
}

.gs-step.is-progress .gs-step-mark {
  background: #5b4dff;
  color: #fff;
}

.gs-step.is-pending .gs-step-mark {
  background: #e8eef6;
  color: #64748b;
}

.gs-step-copy {
  flex: 1;
  min-width: 0;
}

.gs-step-copy b {
  display: block;
  color: #0b1b33;
  font-size: 14px;
}

.gs-step-copy small {
  margin-top: 2px;
  font-weight: 400;
}

.gs-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.gs-pill.is-done {
  background: #e8f8ef;
  color: #15803d;
}

.gs-pill.is-progress {
  background: #eef0ff;
  color: #5b4dff;
}

.gs-pill.is-pending {
  background: #f1f5f9;
  color: #64748b;
}

.gs-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.gs-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.gs-side > .gs-panel {
  height: 100%;
  min-height: 0;
}

.gs-video {
  display: flex;
  flex-direction: column;
}

.gs-video .gs-outline-block {
  /* margin-top: auto; */
}

.gs-video-thumb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 132px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid #e3eefc;
  background:
    radial-gradient(120px 80px at 80% 20%, rgba(147, 197, 253, 0.45), transparent 70%),
    linear-gradient(180deg, #f3f8ff 0%, #f8f7ff 100%);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.gs-video-brand .gs-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 20px;
}

.gs-video-brand b {
  display: block;
  color: #5b4dff;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.gs-video-brand small {
  display: block;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.gs-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #12304f;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 8px 16px rgba(15, 39, 68, 0.18);
}

.gs-video-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border-radius: 7px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: 600;
}

.gs-help-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-top: 1px solid #eef3f9;
  color: #0b1b33;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.gs-help-links a:hover {
  color: var(--blue-deep);
}

.gs-help-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 15px;
}

.gs-help-icon.is-green {
  background: #e8f8ef;
  color: #16a34a;
}

.gs-help-icon.is-blue {
  background: #eef0ff;
  color: #5b4dff;
}

.gs-help-icon.is-violet {
  background: #f3e8ff;
  color: #7c3aed;
}

.gs-help-links .bi-chevron-right {
  margin-left: auto;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.dash-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.dash-full {
  margin-top: 14px;
}

.ops-dashboard .chart-frame {
  height: 248px;
}

.flow-summary {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  margin: 2px 0 6px;
}

.flow-summary > div > span,
.flow-legend span {
  display: block;
  color: #546578;
  font-size: 12px;
  font-weight: 600;
}

.flow-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0b1b33;
  font-variant-numeric: tabular-nums;
}

.flow-legend {
  margin-left: auto;
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 8px;
}

.flow-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.flow-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.flow-legend .is-in {
  background: #5b4dff;
}

.flow-legend .is-out {
  background: #c5ceda;
}

.box-bars {
  list-style: none;
  margin: 0;
  padding: 6px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.box-bars li {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) minmax(72px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
}

.box-bars-name {
  color: #12263f;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.box-bars-track {
  height: 24px;
  border-radius: 5px;
  background: #eef3fb;
  overflow: hidden;
}

.box-bars-track > span {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: 5px;
  background: #5b4dff;
}

.box-bars strong {
  font-size: 13px;
  color: #0b1b33;
  font-variant-numeric: tabular-nums;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.dash-table th {
  padding: 8px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #546578;
  font-weight: 700;
  border-bottom: 1px solid #eef2f8;
  white-space: nowrap;
}

.dash-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f3f6fb;
  vertical-align: middle;
  color: #12263f;
}

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

.dash-table tbody tr:hover td {
  background: #f8f7ff;
}

.dash-table .status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 6px;
}

button.txn-ref {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

button.txn-ref:hover {
  text-decoration: underline;
}

.txn-detail.zainbox-dialog {
  width: min(920px, 100%);
  padding: 22px 24px 20px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 27, 51, 0.18);
}

.txn-detail-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px 14px;
  align-items: start;
}

.txn-detail-mark,
.txn-amount > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 18px;
}

.txn-detail-kicker,
.txn-detail-when,
.txn-amount small,
.txn-line span {
  margin: 0;
  color: #8b9bb5;
  font-size: 13px;
  font-weight: 500;
}

.txn-detail-ref {
  margin: 2px 0 0;
  color: #0b1b33;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.txn-detail-when {
  margin-top: 4px;
}

.txn-detail .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
}

.txn-detail .status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.txn-detail .icon-btn {
  grid-column: -1;
  justify-self: end;
  width: 32px;
  height: 32px;
  color: #7b8ba6;
  font-size: 16px;
}

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

.txn-amount {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 14px;
  background: #f4f7fb;
}

.txn-amount strong,
.txn-line b,
.txn-block h4 {
  color: #0b1b33;
  font-weight: 700;
}

.txn-amount small,
.txn-amount strong {
  display: block;
}

.txn-amount strong {
  margin-top: 2px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.txn-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 36px;
  margin-top: 22px;
}

.txn-block + .txn-block {
  margin-top: 18px;
}

.txn-block h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  font-size: 14px;
}

.txn-block h4 i {
  color: #5b4dff;
  font-size: 16px;
}

.txn-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #eef2f8;
}

.txn-line b {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.txn-type {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 12px;
  font-weight: 700;
}

.txn-actions {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.txn-copy,
.txn-resend {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  background: #fff;
  color: #3d4f66;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.txn-copy i {
  color: #5b4dff;
  font-size: 16px;
}

.txn-copy:hover {
  background: #f5f9ff;
  border-color: #d3e2f7;
}

.txn-resend {
  justify-content: center;
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.txn-repush-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

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

.txn-detail-skeleton .bone-card {
  height: 72px;
  border-radius: 14px;
}

.dark-mode .txn-detail-ref,
.dark-mode .txn-amount strong,
.dark-mode .txn-line b,
.dark-mode .txn-block h4 {
  color: #f4f7ff;
}

.dark-mode .txn-detail-kicker,
.dark-mode .txn-detail-when,
.dark-mode .txn-amount small,
.dark-mode .txn-line span,
.dark-mode .txn-detail .icon-btn,
.dark-mode .txn-repush-note {
  color: #c5d2ea;
}

.dark-mode .txn-amount,
.dark-mode .txn-copy {
  background: #1c2942;
  border-color: #2a3a56;
  color: #f4f7ff;
}

.dark-mode .txn-line,
.dark-mode .txn-copy {
  border-color: #2a3a56;
}

@media (max-width: 800px) {
  .txn-detail-top,
  .txn-amounts,
  .txn-detail-columns,
  .txn-detail-skeleton {
    grid-template-columns: 1fr;
  }

  .txn-detail .status-pill {
    justify-self: start;
  }
}

.dash-ref,
.dash-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-when {
  display: inline;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.dash-money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.dash-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}

.dash-more {
  width: 28px;
  height: 28px;
  color: #546578;
}

.dash-create {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: none;
}

.dash-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  color: #5b4dff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dash-all:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ops-dashboard .table-wrap {
  overflow-x: auto;
}

.dark-mode .app-shell,
.dark-mode .app-shell .topbar {
  background: #0e1524;
}

.dark-mode .app-shell .sidebar {
  background: transparent;
}

.dark-mode .app-shell .nav-link.active {
  background: #1d3d72;
  box-shadow: none;
  color: #d6e6ff;
}

.dark-mode .help-card {
  background: #1a2c4a;
}

.dark-mode .help-card strong,
.dark-mode .dash-hero h1,
.dark-mode .dash-hero h2,
.dark-mode .kpi-value,
.dark-mode .payout-account-facts dd,
.dark-mode .flow-summary strong,
.dark-mode .box-bars strong,
.dark-mode .dash-table td {
  color: #f4f7ff;
}

.dark-mode .range-pill,
.dark-mode .help-support,
.dark-mode .env-switch .select2-container--bootstrap-5 .select2-selection {
  background: #1c2942;
  border-color: #2a3a56;
  color: #e8eefc;
}

.dark-mode .gs-intro h1,
.dark-mode .gs-progress-meta b,
.dark-mode .gs-stat-copy strong,
.dark-mode .gs-panel h2,
.dark-mode .gs-panel h3,
.dark-mode .gs-step-copy b,
.dark-mode .gs-help-links a,
.dark-mode .gs-env-label {
  color: #f4f7ff;
}

.dark-mode .gs-env,
.dark-mode .gs-stat,
.dark-mode .gs-panel,
.dark-mode .gs-art-card,
.dark-mode .gs-art-sheet,
.dark-mode .gs-outline {
  background: #162033;
  border-color: #2a3a56;
  color: #e8eefc;
}

.dark-mode .gs-step {
  background-image: linear-gradient(#2a3a56, #2a3a56);
}

.dark-mode .gs-help-links a {
  border-top-color: #2a3a56;
}

.dark-mode .gs-step:hover {
  background-color: #1c2942;
}

.dark-mode .gs-step.is-done:has(+ .gs-step.is-done)::before,
.dark-mode .gs-step.is-done:has(+ .gs-step.is-progress)::before {
  background: #4c8dff;
}

.dark-mode .gs-step.is-done:has(+ .gs-step.is-progress)::after {
  border-top-color: #4c8dff;
}

.dark-mode .gs-step.is-pending .gs-step-mark,
.dark-mode .gs-pill.is-pending {
  background: #243656;
  color: #c5d2ea;
}

.dark-mode .gs-progress-track {
  background: #243656;
}

.dark-mode .gs-env.is-sandbox .gs-env-state {
  color: #f6c98a;
}

.dark-mode .box-bars-track {
  background: #243656;
}

.dark-mode .dash-table th,
.dark-mode .dash-table td {
  border-color: #2a3a56;
}

.dark-mode .dash-table tbody tr:hover td {
  background: #1c2942;
}

@media (max-width: 1180px) {
  .kpi-row {
    grid-template-columns: 1fr 1fr;
  }

  .dash-split,
  .gs-body {
    grid-template-columns: 1fr;
  }

  .gs-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .gs-art {
    display: none;
  }
}

@media (max-width: 860px) {
  .gs-hero,
  .gs-stats,
  .gs-body {
    grid-template-columns: 1fr;
  }

  .gs-art {
    display: none;
  }

  .gs-step {
    flex-wrap: wrap;
  }

  .gs-step-copy {
    flex: 1 1 calc(100% - 44px);
  }

  .gs-pill {
    margin-left: 40px;
  }

  .app-shell .sidebar {
    position: fixed;
    top: var(--topbar-offset, 68px);
    left: 0;
    z-index: 60;
    height: calc(100dvh - var(--topbar-offset, 68px));
    max-height: calc(100dvh - var(--topbar-offset, 68px));
    background: #f4f7fb;
    transform: translateX(-105%);
    box-shadow: 12px 0 28px rgba(11, 27, 51, 0.16);
  }

  .app-shell .sidebar.mobile-open {
    transform: none;
  }

  .dark-mode .app-shell .sidebar {
    background: #0e1524;
  }

  .app-shell .brand {
    flex: 1 1 72px;
    max-width: 120px;
    overflow: hidden;
  }

  .app-shell .brand-logo {
    display: block;
    height: 26px;
    width: auto;
    max-width: 100%;
  }

  .app-shell .topbar {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    padding: 10px 12px;
  }

  .app-shell .search-box,
  .app-shell .search-box input,
  .app-shell .top-actions,
  .app-shell .brand {
    min-width: 0;
  }

  .app-shell .search-box {
    order: 5;
    flex: 1 1 100%;
    max-width: none;
  }

  .app-shell .top-actions {
    margin-left: auto;
    flex-shrink: 0;
  }

  .app-shell .notification-btn {
    width: 40px;
    padding-right: 0;
    border-right: 0;
  }

  .env-switch {
    display: none;
  }

  .dash-hero {
    display: block;
  }

  .dash-hero .dropdown {
    margin-top: 12px;
  }
}

.tool-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 14px;
  align-items: start;
}

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

.tool-fields .field,
.tool-actions .btn {
  margin-bottom: 0;
}

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

.tool-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.tool-result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.record-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 16px;
  margin: 0;
}

.record-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.record-list dd {
  margin: 2px 0 0;
  font-weight: 600;
}

.record-raw {
  font-size: 12px;
  font-weight: 500;
  word-break: break-word;
}

@media (max-width: 860px) {
  .tool-grid,
  .tool-fields {
    grid-template-columns: 1fr;
  }
}

.payout-page {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.payout-page > .dash-hero,
.transfer-page > .dash-hero {
  margin-bottom: 0;
}

.content-wrap:has(.payout-page) > .footer {
  margin-top: 0;
}

.payout-stage {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
  min-height: 0;
}

.payout-history,
.payout-skeleton {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.payout-stage .payout-workspace {
  grid-column: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payout-workspace > .zainbox-tabs {
  margin-bottom: 0;
}

.payout-workspace > .gs-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.payout-workspace > .gs-panel > .tab-content,
.payout-workspace > .gs-panel > .tab-content > .tab-pane {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.payout-workspace .payout-switch:not(.is-hidden),
.payout-accounts {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.payout-stage .payout-rail {
  grid-column: 2;
  display: grid;
  gap: 14px;
  align-content: start;
}

.payout-switch.is-hidden {
  display: none;
}

.payout-tabs {
  display: flex;
  gap: 4px;
  margin: -4px 0 16px;
  border-bottom: 1px solid #e4eaf2;
  overflow-x: auto;
}

.payout-tabs button,
.payout-skeleton .payout-tabs > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 12px 14px;
  margin-bottom: -1px;
  color: #546578;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.payout-tabs button.is-on,
.payout-skeleton .payout-tabs > span.is-on {
  color: #5b4dff;
  border-bottom-color: #5b4dff;
}

.payout-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.payout-table .dash-ref {
  max-width: none;
  overflow: visible;
  font-variant-numeric: tabular-nums;
}

.payout-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #0b1b33;
  white-space: nowrap;
}

.payout-bank {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payout-bank-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.payout-row-action {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #546578;
}

.payout-row-action:hover,
.payout-row-action:focus {
  background: #f3f6fb;
}

.payout-workspace .table-wrap,
.payout-workspace > .gs-panel,
.payout-workspace > .gs-panel > .tab-content,
.payout-workspace > .gs-panel > .tab-content > .tab-pane,
.payout-workspace .payout-switch {
  overflow: visible;
}

.payout-table .dropdown-menu {
  z-index: 30;
}

.payout-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  color: #546578;
  font-size: 13px;
  font-weight: 600;
}

.payout-pager-pages {
  display: flex;
  align-items: center;
  gap: 6px;
}

.payout-pager-pages button {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #e3ebf6;
  background: #fff;
  color: #12263f;
  font-weight: 700;
}

.payout-pager-pages button.is-on {
  background: #5b4dff;
  border-color: #5b4dff;
  color: #fff;
}

.payout-pager-pages button:disabled {
  opacity: 0.45;
}

.payout-rail-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0b1b33;
}

.payout-rail-range {
  margin: -6px 0 12px;
  color: #546578;
  font-size: 12px;
  font-weight: 600;
}

.payout-action-list {
  display: grid;
}

.payout-action-list a,
.payout-action-list button,
.payout-skeleton .payout-action-list > span {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #eef3fa;
  background: transparent;
  color: #12263f;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.payout-action-list a:last-child,
.payout-action-list button:last-child,
.payout-skeleton .payout-action-list > span:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.payout-action-list .bi-chevron-right {
  margin-left: auto;
  color: #8aa0c2;
}

.payout-about p {
  margin: 0 0 10px;
  color: #546578;
  font-size: 13px;
  line-height: 1.5;
}

.payout-about a {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.status-pill.is-run {
  background: #eef0ff;
  color: #5b4dff;
}

.status-pill .bi-circle-fill {
  font-size: 7px;
  margin-right: 5px;
  vertical-align: 1px;
}

.dark-mode .payout-tabs {
  border-bottom-color: #2a3a56;
}

.dark-mode .payout-tabs button,
.dark-mode .payout-skeleton .payout-tabs > span {
  color: #c5d2ea;
}

.dark-mode .payout-tabs button.is-on,
.dark-mode .payout-skeleton .payout-tabs > span.is-on {
  color: #9b93ff;
  border-bottom-color: #9b93ff;
}

.payout-skeleton .kpi-spark .bone {
  width: 100%;
  height: 44px;
  border-radius: 8px;
}

.payout-skeleton .bone-check {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.payout-skeleton .bone-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.payout-skeleton .payout-toolbar .bone-pill {
  width: 168px;
  height: 36px;
  border-radius: 999px;
}

.payout-skeleton td .bone-pill {
  width: 72px;
  height: 24px;
  border-radius: 999px;
}

.payout-skeleton .payout-bank .bone-label,
.payout-skeleton td .bone-stack .bone-label,
.payout-skeleton .payout-rail-range .bone-label {
  width: 96px;
}

.payout-skeleton td .bone-stack {
  gap: 4px;
}

.payout-skeleton td .bone-stack .bone-label:last-child {
  width: 48px;
}

.payout-skeleton .payout-bone-pager {
  width: 180px;
  height: 14px;
}

.payout-skeleton .payout-bone-pages {
  width: 92px;
  height: 32px;
  border-radius: 10px;
}

.payout-skeleton .payout-bone-size {
  width: 108px;
  height: 36px;
  border-radius: 999px;
}

.dark-mode .payout-amount,
.dark-mode .payout-rail-title,
.dark-mode .payout-action-list a,
.dark-mode .payout-action-list button {
  color: #e7eefc;
}

.dark-mode .payout-action-list a,
.dark-mode .payout-action-list button,
.dark-mode .payout-bank-mark {
  background: transparent;
}

.dark-mode .payout-bank-mark {
  background: #1c335c;
  color: #9b93ff;
}

.dark-mode .payout-row-action:hover,
.dark-mode .payout-row-action:focus {
  background: #1c335c;
}

@media (max-width: 1100px) {
  .payout-stage {
    grid-template-columns: 1fr;
  }

  .payout-stage .payout-workspace,
  .payout-stage .payout-rail {
    grid-column: 1;
    grid-row: auto;
  }
}

.payout-section-head {
  margin-bottom: 12px;
}

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

.payout-account .panel-heading {
  margin-bottom: 12px;
}

.payout-account-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.payout-account-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.payout-account-facts dt {
  color: #546578;
  font-size: 12px;
  font-weight: 600;
}

.payout-account-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.dark-mode .payout-account-facts dt {
  color: #c5d2ea;
}

@media (max-width: 640px) {
  .kpi-row {
    grid-template-columns: 1fr;
  }

  .flow-summary {
    flex-wrap: wrap;
    gap: 12px;
  }

  .flow-legend {
    margin-left: 0;
    padding-bottom: 0;
  }
}

.kpi-icon.is-red {
  background: #fdecec;
  color: #d11a2a;
}

.transfer-page {
  display: grid;
  gap: 16px;
}

.transfer-skeleton {
  display: grid;
  gap: 16px;
}

.transfer-skeleton .bone-input {
  width: 100%;
  height: 37px;
  border-radius: 10px;
}

.transfer-skeleton .bone-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.transfer-skeleton .bone-pill {
  width: 72px;
  height: 24px;
  border-radius: 999px;
}

.transfer-skeleton .transfer-bone-center {
  width: 46%;
  margin-inline: auto;
}

.transfer-skeleton .transfer-steps li .bone-step,
.transfer-skeleton .transfer-steps li .bone-label {
  background: linear-gradient(90deg, #e6edf6 0%, #f8fafc 45%, #e6edf6 100%);
  background-size: 220% 100%;
}

.transfer-skeleton .transfer-steps li .bone-label {
  width: 92px;
  height: 10px;
  border-radius: 8px;
}

.transfer-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.transfer-form,
.transfer-rail {
  min-width: 0;
}

.transfer-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.transfer-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 4px 0 20px;
  padding: 0;
  list-style: none;
}

.transfer-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #8b97b3;
  font-size: 13px;
  font-weight: 600;
}

.transfer-step-index {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #e7edf7;
  color: #6d7b98;
  font-size: 12px;
}

.transfer-step-index .bi {
  font-size: 14px;
  line-height: 1;
}

.transfer-step-label {
  min-width: 0;
  line-height: 1.2;
}

.transfer-steps li:not(:last-child)::after {
  content: "";
  flex: 1 1 12px;
  height: 1px;
  margin-left: 8px;
  background: #d9e3f2;
}

.transfer-steps li.is-on {
  color: #5b4dff;
}

.transfer-steps li.is-on .transfer-step-index,
.transfer-steps li.is-done .transfer-step-index {
  background: #5b4dff;
  color: #fff;
}

.transfer-steps li.is-done {
  color: #0b1b33;
}

.transfer-steps li.is-done::after {
  background: #b9d4ff;
}

.transfer-fields {
  display: grid;
  gap: 20px;
}

.transfer-block {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.transfer-block h3 {
  margin: 0;
  color: #0b1b33;
  font-size: 13px;
  font-weight: 700;
}

.transfer-fields .field,
.transfer-fields .form-error,
.transfer-fields .field-note,
.transfer-fields .transfer-hint {
  margin-bottom: 0;
}

.transfer-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
}

.field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 12px;
  flex-wrap: wrap;
}

.field-warning {
  color: #9f2d20;
  font-size: 12px;
  font-weight: 600;
}

.transfer-hint {
  margin: 0;
  color: #9f2d20;
  font-size: 12px;
  font-weight: 600;
}

.transfer-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 13px;
}

.transfer-balance strong {
  font-weight: 700;
}

.transfer-lookup {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.transfer-lookup-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #eef0ff;
  color: #5b4dff;
  font-weight: 700;
}

.transfer-lookup-btn:hover {
  background: #d7e6ff;
  color: #4338ca;
}

.transfer-payee {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 12px;
  background: #e7f7ee;
  color: #0b7a45;
  font-size: 13px;
  font-weight: 600;
}

.transfer-payee .bi {
  margin-top: 2px;
}

.transfer-review {
  display: grid;
  gap: 2px;
}

.transfer-review-amount {
  margin: 0;
  color: #0b1b33;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.transfer-review-who {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.transfer-save {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #0b1b33;
  font-size: 14px;
  font-weight: 600;
}

.transfer-save small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

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

.transfer-swal {
  width: 28rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-radius: 16px;
}

.transfer-swal-title {
  padding: 0;
  color: #0b1b33;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.transfer-swal-text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.transfer-swal-actions {
  gap: 10px;
  margin-top: 1.25rem;
}

.transfer-swal-actions .btn {
  margin: 0;
  min-width: 7.5rem;
}

.dark-mode .transfer-swal {
  background: #162033;
}

.dark-mode .transfer-swal-title {
  color: #e8eefc;
}

.transfer-confirm {
  margin: 0;
}

.transfer-confirm div,
.transfer-limits div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.transfer-confirm dt,
.transfer-limits dt {
  color: var(--muted);
  font-weight: 500;
}

.transfer-confirm dd,
.transfer-limits dd {
  margin: 0;
  font-weight: 700;
  color: #0b1b33;
  text-align: right;
  overflow-wrap: anywhere;
}

.transfer-confirm div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.transfer-limits {
  margin: 0;
}

.transfer-complete {
  display: grid;
  gap: 18px;
  min-width: 0;
  container-type: inline-size;
}

.transfer-receipt {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.transfer-outcome {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 24px;
  min-width: 0;
}

.transfer-outcome-note,
.transfer-outcome-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.transfer-outcome-money {
  margin-left: auto;
  max-width: 100%;
  min-width: 0;
  text-align: right;
}

.transfer-outcome-amount {
  margin: 0;
  color: #0b1b33;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.transfer-outcome-meta {
  margin-top: 4px;
}

.transfer-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  min-width: 0;
}

.transfer-party h4,
.transfer-check h4 {
  margin: 0 0 10px;
  color: #0b1b33;
  font-size: 13px;
  font-weight: 700;
}

.transfer-party dl,
.transfer-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.transfer-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  min-width: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.transfer-facts .is-wide {
  grid-column: 1 / -1;
}

.transfer-party dl div,
.transfer-facts div {
  min-width: 0;
}

.transfer-party dt,
.transfer-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.transfer-party dd,
.transfer-facts dd {
  margin: 2px 0 0;
  color: #0b1b33;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.transfer-facts dd.is-code {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
}

.transfer-followup,
.transfer-check {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.transfer-followup .field,
.transfer-followup .form-error,
.transfer-followup .field input {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
}

.transfer-complete .transfer-actions {
  flex-wrap: wrap;
}

.transfer-check .transfer-facts {
  border-top: 0;
  padding-top: 0;
}

.transfer-recent,
.transfer-network {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.transfer-recent li,
.transfer-network li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.transfer-network li {
  grid-template-columns: minmax(0, 1fr) auto;
}

.transfer-recent b,
.transfer-recent strong {
  display: block;
  color: #0b1b33;
  font-size: 14px;
}

.transfer-recent small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.transfer-recent strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .transfer-stage {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .transfer-steps {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .transfer-steps li::after {
    display: none;
  }

  .transfer-pair {
    grid-template-columns: 1fr;
  }
}

.dark-mode .transfer-block h3,
.dark-mode .transfer-steps li.is-done,
.dark-mode .transfer-review-amount,
.dark-mode .transfer-confirm dd {
  color: #e8eefc;
}

.dark-mode .transfer-steps li:not(:last-child)::after {
  background: #2a3a56;
}

.dark-mode .transfer-steps li.is-done::after {
  background: #3d6ec4;
}

.dark-mode .transfer-step-index {
  background: #1c335c;
  color: #c5d2ea;
}

.dark-mode .transfer-lookup-btn,
.dark-mode .transfer-balance {
  background: #1c335c;
  color: #9ec2ff;
}

.dark-mode .transfer-payee {
  background: #163828;
  color: #8ee0b2;
}

.dark-mode .transfer-hint {
  color: #ffb4ab;
}

@container (max-width: 560px) {
  .transfer-outcome {
    flex-direction: column;
  }

  .transfer-outcome-money {
    margin-left: 0;
    text-align: left;
  }

  .transfer-parties,
  .transfer-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

.zainbox-modal.is-drawer {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.zainbox-modal.is-drawer .zainbox-dialog {
  width: min(440px, 100%);
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
}

.zainbox-modal.is-drawer .zainbox-dialog.manager-editor {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
}

.manager-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  flex: 1;
}

.manager-password-control {
  position: relative;
}

.manager-password-control input {
  padding-right: 42px;
}

.manager-password-control .icon-btn {
  position: absolute;
  top: 0;
  right: 4px;
  bottom: 0;
  width: 32px;
  height: 32px;
  margin: auto;
  color: #6d7f9e;
}

.manager-editor-fields,
.manager-editor-permits {
  min-width: 0;
}

.manager-editor-permits {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.manager-editor .panel-heading h3 {
  font-size: 15px;
}

.manager-editor > .panel-heading h3 {
  font-size: 18px;
}

.manager-editor .check-row {
  align-items: flex-start;
}

.manager-editor .check-row input {
  margin-top: 3px;
}

.manager-editor .check-row small {
  display: block;
  margin-top: 2px;
  color: #6d7f9e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 860px) {
  .manager-editor-grid {
    grid-template-columns: 1fr;
  }

  .manager-editor-permits {
    padding-left: 0;
    border-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
}

[x-cloak] {
  display: none !important;
}

.subaccounts .page-heading {
  align-items: flex-start;
  margin-bottom: 18px;
}

.subaccounts .page-heading h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.subaccounts .page-heading h2 {
  font-size: 15px;
  font-weight: 600;
  color: #3d4f66;
  margin-bottom: 4px;
}

.subaccounts .page-heading p {
  font-size: 14px;
  color: #6d7f9e;
  max-width: 58ch;
}

.sub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.sub-stat {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 8px 20px rgba(16, 40, 90, 0.04);
}

.sub-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 18px;
}

.sub-stat-icon.is-blue {
  background: #eef0ff;
  color: #5b4dff;
}

.sub-stat-icon.is-green {
  background: #e7f8ee;
  color: #1c9d55;
}

.sub-stat p {
  margin: 0;
  font-size: 13px;
  color: #6d7f9e;
}

.sub-stat strong {
  display: block;
  margin: 2px 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: #0b1b33;
}

.sub-stat small {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6d7f9e;
  font-size: 12px;
}

.sub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c5d0e2;
  display: inline-block;
}

.sub-dot.is-green {
  background: #22a06b;
}

.sub-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 14px;
  box-shadow: 0 8px 20px rgba(16, 40, 90, 0.04);
}

.sub-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #5c6e8c;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 12px 10px;
  border-radius: 10px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.sub-tabs button.is-active {
  color: #5b4dff;
  border-bottom-color: #5b4dff;
}

.sub-panel {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(16, 40, 90, 0.04);
  padding: 14px 14px 12px;
}

.sub-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sub-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  padding: 0 12px;
  color: #8aa0c2;
  background: #fff;
}

.sub-search input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #12263f;
  font: inherit;
  font-size: 14px;
  min-height: 40px;
}

.sub-search input::placeholder {
  color: #9aabc4;
}

.sub-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid #e1e8f2;
  border-radius: 12px;
  padding: 0 12px;
  color: #5c6e8c;
  background: #fff;
  flex: 0 0 auto;
}

.sub-filter select {
  border: 0;
  background: transparent;
  color: #3d4f66;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 40px;
  padding-right: 18px;
  cursor: pointer;
}

.sub-table {
  width: 100%;
  border-collapse: collapse;
}

.sub-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8aa0c2;
  padding: 12px 10px;
  border-bottom: 1px solid #eef3f9;
  white-space: nowrap;
}

.sub-table td {
  padding: 14px 10px;
  border-bottom: 1px solid #f2f6fb;
  vertical-align: middle;
  font-size: 14px;
  color: #12263f;
}

.sub-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}

.sub-person strong {
  font-size: 14px;
  line-height: 1.3;
  color: #0b1b33;
}

.sub-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}

.sub-avatar.is-violet {
  background: #efe7ff;
  color: #6d4aff;
}

.sub-avatar.is-green {
  background: #e7f8ee;
  color: #1c9d55;
}

.sub-avatar.is-amber {
  background: #fff3df;
  color: #d4880a;
}

.sub-email,
.sub-muted,
.sub-when {
  color: #6d7f9e;
  font-size: 13px;
}

.sub-count {
  font-weight: 600;
  color: #3d4f66;
}

.sub-pill,
.sub-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sub-pill.is-monitor {
  background: #f4f7fb;
  color: #5c6e8c;
  border: 1px solid #e4ebf5;
}

.sub-pill.is-full {
  background: #e7f8ee;
  color: #178a4a;
}

.sub-pill.is-custom {
  background: #fff6e5;
  color: #c47d12;
}

.sub-status {
  background: #e7f8ee;
  color: #178a4a;
}

.sub-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22a06b;
}

.sub-actions {
  width: 44px;
  text-align: right;
}

.sub-menu {
  position: relative;
  display: inline-block;
}

.sub-menu > button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5c6e8c;
  cursor: pointer;
}

.sub-menu > button:hover {
  background: #f3f7ff;
  color: #5b4dff;
}

.sub-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  min-width: 140px;
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(11, 27, 51, 0.12);
  padding: 6px;
}

.sub-menu-list button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 14px;
  color: #12263f;
  cursor: pointer;
}

.sub-menu-list button:hover {
  background: #f3f7ff;
}

.sub-menu-list button.is-danger {
  color: #9f2d20;
}

.sub-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 6px 2px;
}

.sub-pager p {
  margin: 0;
  color: #6d7f9e;
  font-size: 13px;
}

.sub-pager div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-pager button {
  min-width: 32px;
  height: 32px;
  border: 1px solid #e1e8f2;
  background: #fff;
  color: #3d4f66;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.sub-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.sub-pager button.is-current {
  background: #5b4dff;
  border-color: #5b4dff;
  color: #fff;
}

.sub-empty {
  padding: 36px 16px;
  text-align: center;
}

.sub-empty strong {
  display: block;
  color: #0b1b33;
  margin-bottom: 4px;
}

.sub-empty p {
  margin: 0;
  color: #6d7f9e;
  font-size: 14px;
}

.subaccounts-drawer.zainbox-modal {
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
}

.sub-drawer.zainbox-dialog {
  width: min(440px, 100%);
  height: 100%;
  max-height: none;
  margin: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -16px 0 40px rgba(11, 27, 51, 0.12);
}

.sub-drawer-head,
.sub-drawer-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  flex: 0 0 auto;
}

.sub-drawer-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: #0b1b33;
}

.sub-drawer-head p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #6d7f9e;
}

.sub-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 4px 18px 18px;
}

.sub-drawer-body h4 {
  margin: 8px 0 12px;
  font-size: 15px;
  color: #0b1b33;
}

.sub-drawer-body .field-note {
  margin: 6px 0 14px;
}

.sub-control {
  position: relative;
  display: block;
}

.sub-control > i {
  position: absolute;
  left: 12px;
  top: 18px;
  color: #8aa0c2;
  z-index: 2;
  pointer-events: none;
}

.sub-control input {
  padding-left: 36px;
}

.sub-control.is-select .select2-container--bootstrap-5 .select2-selection--multiple {
  padding-left: 32px;
}

.sub-reveal {
  position: absolute;
  right: 8px;
  top: 4px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: #6d7f9e;
  cursor: pointer;
}

.sub-permit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 14px;
  cursor: pointer;
}

.sub-permit input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #5b4dff;
  flex: 0 0 auto;
}

.sub-permit strong {
  display: block;
  font-size: 14px;
  color: #12263f;
}

.sub-permit small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #6d7f9e;
  line-height: 1.4;
}

.sub-drawer-foot {
  justify-content: flex-end;
  border-top: 1px solid #eef3f9;
  background: #fff;
}

.dark-mode .sub-stat,
.dark-mode .sub-tabs,
.dark-mode .sub-panel,
.dark-mode .sub-search,
.dark-mode .sub-filter,
.dark-mode .sub-menu-list,
.dark-mode .sub-drawer {
  background: #152033;
  border-color: #2a3a56;
}

.dark-mode .subaccounts .page-heading h2,
.dark-mode .sub-stat strong,
.dark-mode .sub-person strong,
.dark-mode .sub-drawer-head h3,
.dark-mode .sub-drawer-body h4,
.dark-mode .sub-permit strong,
.dark-mode .sub-empty strong,
.dark-mode .sub-search input,
.dark-mode .sub-filter select,
.dark-mode .sub-table td,
.dark-mode .sub-menu-list button {
  color: #f4f7ff;
}

.dark-mode .sub-table th,
.dark-mode .sub-table td {
  border-color: #2a3a56;
}

.dark-mode .sub-pill.is-monitor {
  background: #1c2942;
  border-color: #2a3a56;
  color: #c5d2ea;
}

@media (max-width: 900px) {
  .sub-stats,
  .sub-toolbar,
  .sub-pager {
    grid-template-columns: 1fr;
    display: grid;
  }

  .sub-tabs {
    overflow-x: auto;
  }
}

.qs-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 16px;
  align-items: stretch;
}

.qs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 18px;
  align-items: center;
  min-width: 0;
  padding: 28px 24px 24px;
  border-radius: 22px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.7), transparent 46%),
    linear-gradient(180deg, #e7f1ff 0%, #f4f8ff 100%);
  border: 1px solid #d7e6fb;
}

.qs-copy {
  min-width: 0;
}

.qs-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(91, 77, 255, 0.14);
  color: #5b4dff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.qs-chip i {
  font-size: 13px;
}

.qs-hero h1 {
  margin: 0;
  color: #0b1b33;
  font-size: 44px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  text-wrap: balance;
}

.qs-hero .qs-copy > p:last-of-type {
  max-width: 46ch;
  margin: 12px 0 0;
  color: #546578;
  font-size: 14.5px;
  line-height: 1.55;
}

.qs-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 22px;
}

.qs-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  white-space: nowrap;
}

.qs-stage {
  position: relative;
  min-width: 0;
}

.qs-stage img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.qs-screen {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
  min-height: 252px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #5b93f8 0%, #3d78ea 100%);
  box-shadow: 0 18px 34px rgba(11, 27, 51, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.qs-screen-nav,
.qs-screen-card {
  min-width: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #12263f;
}

.qs-screen-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 12px 10px;
  font-size: 11px;
}

.qs-screen-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.qs-screen-brand span {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #5b4dff;
}

.qs-screen-nav > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #546578;
}

.qs-screen-nav > span.is-on {
  color: #5b4dff;
  font-weight: 700;
}

.qs-screen-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 12px 12px 18px;
}

.qs-screen-card strong {
  margin-bottom: 6px;
  font-size: 13px;
}

.qs-screen-card small {
  color: #6d7f9e;
  font-size: 10px;
}

.qs-screen-card em {
  margin-bottom: 4px;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f4f7fb;
  color: #12263f;
  font-style: normal;
  font-size: 11px;
  line-height: 1.35;
}

.qs-screen-card b {
  align-self: flex-start;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #5b4dff;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.qs-stage-play,
.qs-thumb-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 20px rgba(11, 27, 51, 0.2);
}

.qs-stage-play {
  width: 64px;
  height: 64px;
  text-decoration: none;
}

.qs-stage-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.qs-stage-play svg,
.qs-thumb-play svg {
  width: 13px;
  height: 15px;
  margin-left: 2px;
  fill: #0b1b33;
}

.qs-stage-play svg {
  width: 28%;
  height: auto;
}

.qs-stage-time,
.qs-thumb-time {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(11, 27, 51, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.qs-rail,
.qs-guide,
.qs-resource {
  min-width: 0;
}

.qs-rail {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qs .gs-panel {
  padding-bottom: 16px;
}

.qs-section-head h2 {
  margin: 0;
  color: #0b1b33;
  letter-spacing: -0.03em;
}

.qs-complete {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.qs-complete b {
  display: block;
  margin-bottom: 2px;
  color: #0b1b33;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.qs-rail-art {
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 148px;
  margin: 8px 0 0;
  pointer-events: none;
}

.qs-rail-art img {
  display: block;
  width: min(220px, 100%);
  height: auto;
  mask-image: radial-gradient(circle at 50% 48%, #000 54%, transparent 78%);
}

.qs-rail-links {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.qs-rail-links .gs-outline {
  justify-content: space-between;
  width: 100%;
  margin: 0;
}

.qs-bar {
  height: 6px;
  margin: 8px 0 12px;
  border-radius: 999px;
  background: #e4eaf2;
  overflow: hidden;
}

.qs-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #22c55e;
}

.qs-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  color: inherit;
  text-decoration: none;
}

.qs-step.is-done:has(+ .qs-step.is-done)::before,
.qs-step.is-done:has(+ .qs-step.is-progress)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 32px;
  bottom: -8px;
  width: 2px;
  background: #34d39a;
}

.qs-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef3f9;
  color: #6d7f9e;
  font-size: 12px;
  font-weight: 700;
}

.qs-step.is-done .qs-mark {
  background: #22c55e;
  color: #fff;
}

.qs-step.is-progress .qs-mark {
  background: #5b4dff;
  color: #fff;
  box-shadow: 0 0 0 4px #eef0ff;
}

.qs-step strong,
.qs-step small {
  display: block;
}

.qs-step strong {
  font-size: 13px;
  color: #12263f;
}

.qs-step small {
  margin-top: 1px;
  color: #6d7f9e;
  font-size: 12px;
}

.qs-step.is-done small {
  color: #16a34a;
}

.qs-step.is-progress small {
  color: #5b4dff;
}

.qs-step:hover strong {
  color: #5b4dff;
}

.qs-guides {
  margin-top: 22px;
}

.qs-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 14px;
}

.qs-section-head h2 {
  font-size: 20px;
}

.qs-section-head p {
  margin: 4px 0 0;
  color: #546578;
  font-size: 14px;
}

.qs-section-head > a {
  flex: 0 0 auto;
  color: #5b4dff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.qs-section-head > a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.qs-guide-grid,
.qs-resources {
  display: grid;
  gap: 14px;
}

.qs-guide-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.qs-resources {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.qs-guide,
.qs-resource {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.qs-guide-copy {
  display: flex;
  gap: 10px;
  min-width: 0;
}

.qs-guide-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  flex: 0 0 auto;
  font-size: 16px;
}

.qs-guide-icon.is-blue { background: #eef0ff; color: #5b4dff; }
.qs-guide-icon.is-green { background: #e8f8ef; color: #16a34a; }
.qs-guide-icon.is-sky { background: #e7f6ff; color: #0284c7; }
.qs-guide-icon.is-violet { background: #f3e8ff; color: #7c3aed; }
.qs-guide-icon.is-amber { background: #fff4e5; color: #d97706; }

.qs-guide h3,
.qs-resource h3 {
  font-size: 15px;
}

.qs-guide p,
.qs-resource p {
  margin: 3px 0 0;
  color: #546578;
  font-size: 13px;
  line-height: 1.45;
}

.qs-thumb {
  position: relative;
  height: 118px;
  border-radius: 12px;
  overflow: hidden;
  background: #071433;
}

.qs-thumb.is-green { background: #062016; }
.qs-thumb.is-violet { background: #140b2a; }
.qs-thumb.is-amber { background: #12182c; }
.qs-thumb.is-sky { background: linear-gradient(180deg, #d7e8ff, #f3f0ff); }

.qs-scene {
  position: absolute;
  inset: 0;
  padding: 12px 14px;
}

.qs-scene > span:first-child,
.qs-scene > b {
  display: block;
  color: rgba(255, 255, 255, 0.92);
}

.qs-scene > span:first-child {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.qs-scene > b {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.qs-lines {
  display: grid;
  gap: 5px;
  width: 68%;
  margin-top: 12px;
}

.qs-lines i {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: rgba(125, 211, 252, 0.9);
}

.qs-lines i:nth-child(2) { width: 84%; background: rgba(255, 255, 255, 0.55); }
.qs-lines i:nth-child(3) { width: 62%; background: rgba(134, 239, 172, 0.85); }
.qs-lines i.is-short { width: 40%; background: rgba(147, 197, 253, 0.75); }

.qs-thumb.is-green .qs-lines i { background: rgba(74, 222, 128, 0.85); }
.qs-thumb.is-green .qs-lines i:nth-child(2) { background: rgba(187, 247, 208, 0.7); }
.qs-thumb.is-green .qs-lines i:nth-child(3) { background: rgba(52, 211, 153, 0.8); }
.qs-thumb.is-violet .qs-lines i,
.qs-thumb.is-violet .qs-lines i.is-short { background: rgba(196, 181, 253, 0.88); }
.qs-thumb.is-violet .qs-lines i:nth-child(2) { background: rgba(233, 213, 255, 0.7); }
.qs-thumb.is-amber .qs-lines i,
.qs-thumb.is-amber .qs-lines i.is-short { background: rgba(253, 186, 116, 0.88); }
.qs-thumb.is-amber .qs-lines i:nth-child(2) { background: rgba(255, 255, 255, 0.55); }

.qs-thumb.is-sky .qs-scene > span:first-child,
.qs-thumb.is-sky .qs-scene > b {
  color: #12263f;
}

.qs-thumb.is-sky .qs-lines {
  width: 76%;
  margin: 8px auto 0;
  padding: 8px 8px 7px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 16px rgba(11, 27, 51, 0.12);
}

.qs-thumb.is-sky .qs-lines i,
.qs-thumb.is-sky .qs-lines i.is-short {
  height: 5px;
  background: #d5e0f0;
}

.qs-thumb.is-sky .qs-lines i:first-child {
  width: 46%;
  background: #5b4dff;
}

.qs-thumb-play {
  top: 62%;
  width: 38px;
  height: 38px;
}

.qs .btn-outline-primary {
  color: #5b4dff;
  border-color: #d3e2f7;
  background: #fff;
  box-shadow: none;
}

.qs .btn-outline-primary:hover {
  background: #f5f9ff;
  border-color: #b9d0f4;
  color: #4338ca;
}

.qs-guide,
.qs-resource {
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.qs-guide:hover,
.qs-resource:hover {
  border-color: #c5d8f6;
  box-shadow: 0 12px 24px rgba(11, 27, 51, 0.08);
}

.qs-guide .btn,
.qs-resource .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  border-radius: 12px;
  background: #fff;
}

.qs-resource .qs-guide-icon {
  width: 40px;
  height: 40px;
}

.dark-mode .qs-hero {
  background: linear-gradient(180deg, #1c2942 0%, #152033 100%);
  border-color: #2a3a56;
}

.dark-mode .qs-rail-art img {
  opacity: 0.92;
}

.dark-mode .qs-complete b,
.dark-mode .qs-hero h1,
.dark-mode .qs-rail h2,
.dark-mode .qs-section-head h2,
.dark-mode .qs-guide h3,
.dark-mode .qs-resource h3,
.dark-mode .qs-step strong,
.dark-mode .qs-rail-meta b {
  color: #f4f7ff;
}

.dark-mode .qs-hero .qs-copy > p:last-of-type,
.dark-mode .qs-section-head p,
.dark-mode .qs-guide p,
.dark-mode .qs-resource p,
.dark-mode .qs-rail-meta,
.dark-mode .qs-step small {
  color: #c5d2ea;
}

.dark-mode .qs-step.is-done small { color: #4ade80; }
.dark-mode .qs-step.is-progress small { color: #7cb0ff; }

.dark-mode .qs-chip,
.dark-mode .qs-rail,
.dark-mode .qs-guide,
.dark-mode .qs-resource,
.dark-mode .qs-guide .btn,
.dark-mode .qs-resource .btn {
  background: #152033;
  border-color: #2a3a56;
  color: #f4f7ff;
}

.dark-mode .qs-mark {
  background: #1c2942;
  color: #c5d2ea;
}

.dark-mode .qs-step.is-progress .qs-mark {
  box-shadow: 0 0 0 4px #1c2942;
}

.dark-mode .qs-bar {
  background: #2a3a56;
}

@media (max-width: 1180px) {
  .qs-guide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .qs-top,
  .qs-hero,
  .qs-resources {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .qs-hero h1 {
    font-size: 32px;
  }

  .qs-actions {
    flex-wrap: wrap;
  }

  .qs-guide-grid {
    grid-template-columns: 1fr;
  }
}

.ky-top,
.ky-body {
  display: grid;
  gap: 16px;
  align-items: start;
}

.ky-top {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
}

.ky-body {
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: stretch;
  margin-top: 22px;
}

.ky-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: center;
  min-height: 230px;
  padding: 28px 24px;
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 88% 50%, rgba(147, 197, 253, 0.55), transparent 60%),
    linear-gradient(180deg, #e7f1ff 0%, #f3f8ff 100%);
  border: 1px solid #d7e6fb;
}

.ky-kicker {
  margin: 0 0 8px;
  color: #546578;
  font-size: 13px;
  font-weight: 600;
}

.ky-hero h2,
.ky-progress h2,
.ky-sections h2,
.ky-help h2,
.ky-faq h2 {
  margin: 0;
  color: #0b1b33;
  letter-spacing: -0.03em;
}

.ky-hero h2 {
  font-size: 32px;
  line-height: 1.1;
}

.ky-hero-copy p {
  max-width: 46ch;
  margin: 10px 0 0;
  color: #546578;
  font-size: 14.5px;
  line-height: 1.5;
}

.ky-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 12px;
}

.ky-art img {
  display: block;
  width: 100%;
  height: auto;
}

.ky-dot {
  width: 16px;
  height: 16px;
  border: 1.5px solid #c5d0e2;
  border-radius: 50%;
  flex: 0 0 auto;
}

.ky .gs-panel {
  padding-bottom: 16px;
}

.ky-progress {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ky-sections header p,
.ky-help p,
.ky-faq p {
  margin: 4px 0 0;
  color: #546578;
  font-size: 14px;
  line-height: 1.45;
}

.ky-list {
  overflow: hidden;
}

.ky-help .gs-outline {
  margin-top: 12px;
}

.ky-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto 16px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-top: 1px solid #eef3f9;
  color: inherit;
  text-decoration: none;
}

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

.ky-row:hover {
  background: #f8f7ff;
}

.ky-row-copy strong,
.ky-row-copy small {
  display: block;
}

.ky-row-copy strong {
  color: #0b1b33;
  font-size: 15px;
}

.ky-row-copy small {
  margin-top: 3px;
  color: #546578;
  font-size: 13px;
  line-height: 1.4;
}

.ky-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6d7f9e;
  font-size: 13px;
  white-space: nowrap;
}

.ky-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 10px;
  background: #eef0ff;
  color: #5b4dff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.ky-row > .bi-chevron-right {
  color: #8aa0c2;
}

.ky-rail {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
}

.ky-row:hover .ky-start {
  background: #dceaff;
}

.ky-faq {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ky-faq-item {
  border-top: 1px solid #eef3f9;
}

.ky-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  color: #12263f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.ky-faq summary::-webkit-details-marker {
  display: none;
}

.ky-faq summary i {
  color: #8aa0c2;
  transition: transform 180ms var(--ease);
}

.ky-faq-item[open] summary i {
  transform: rotate(180deg);
}

.ky-faq p {
  margin: 0 0 12px;
}

.dark-mode .ky-hero {
  background: linear-gradient(180deg, #1c2942 0%, #152033 100%);
  border-color: #2a3a56;
}

.dark-mode .ky-hero h2,
.dark-mode .ky-progress h2,
.dark-mode .ky-sections h2,
.dark-mode .ky-help h2,
.dark-mode .ky-faq h2,
.dark-mode .ky-row-copy strong,
.dark-mode .ky-progress li,
.dark-mode .ky-faq summary {
  color: #f4f7ff;
}

.dark-mode .ky-kicker,
.dark-mode .ky-hero-copy p,
.dark-mode .ky-sections header p,
.dark-mode .ky-help p,
.dark-mode .ky-faq p,
.dark-mode .ky-row-copy small,
.dark-mode .ky-state,
.dark-mode .ky-progress-meta {
  color: #c5d2ea;
}

.dark-mode .ky-row,
.dark-mode .ky-faq-item {
  border-color: #2a3a56;
}

.dark-mode .ky-row:hover {
  background: #1c2942;
}

.docs-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.docs-hero h1 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  color: #0d194e;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.docs-hero h2 {
  margin: 0 0 6px;
  color: #12263f;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.docs-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.docs-art {
  position: relative;
  width: 300px;
  height: 100px;
  justify-self: end;
}

.docs-art::before {
  content: "";
  position: absolute;
  inset: -16px -8px -12px -48px;
  background: radial-gradient(ellipse at 68% 50%, rgba(198, 220, 255, 0.85), rgba(232, 242, 255, 0.2) 58%, transparent 76%);
  pointer-events: none;
}

.docs-art svg {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.docs-shortcuts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 6px;
}

.docs-rail article,
.docs-nav,
.docs-base,
.docs-warn {
  background: #fff;
  border: 1px solid #e6eef8;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(11, 27, 51, 0.05);
}

.docs-nav a:hover,
.docs-rail a:hover {
  background: #f8f7ff;
}

.docs-main p,
.docs-help p {
  color: #5c6f90;
  font-size: 13px;
  line-height: 1.4;
}

.docs-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 16px;
}

.docs-mark.is-blue {
  background: #eef0ff;
  color: #5b4dff;
}

.docs-mark.is-green {
  background: #e8f8ef;
  color: #16a34a;
}

.docs-mark.is-purple {
  background: #f3e8ff;
  color: #7c3aed;
}

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  gap: 20px;
  align-items: start;
  margin-top: 20px;
}

.docs-nav,
.docs-rail article {
  padding: 12px;
}

.docs-nav p,
.docs-rail h2 {
  margin: 12px 8px 6px;
  color: #8aa0c2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-nav p:first-child,
.docs-rail h2 {
  margin-top: 4px;
}

.docs-rail h2 {
  color: #0b1b33;
  font-size: 15px;
  letter-spacing: -0.02em;
  text-transform: none;
}

.docs-nav a,
.docs-rail a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #546578;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
}

.docs-nav a i {
  color: #8aa0c2;
  font-size: 15px;
}

.docs-nav a.is-current {
  background: #eef0ff;
  color: #5b4dff;
}

.docs-nav a.is-current i {
  color: #5b4dff;
}

.docs-toc a {
  color: #12263f;
  font-weight: 500;
}

.docs-guides a i {
  color: #5b4dff;
}

.docs-main h2 {
  margin: 0 0 8px;
  color: #0b1b33;
  font-size: 26px;
  letter-spacing: -0.03em;
}

.docs-main section + section {
  margin-top: 28px;
}

.docs-main p {
  margin: 0;
  font-size: 15px;
}

.docs-base,
.docs-warn {
  margin-top: 16px;
  padding: 16px;
}

.docs-base {
  background: #f3f0ff;
  border-color: #d7e6fb;
}

.docs-base-head,
.docs-url,
.docs-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.docs-base-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0b1b33;
  font-weight: 700;
}

.docs-base-head i,
.docs-base-head a {
  color: #5b4dff;
}

.docs-base-head a,
.docs-code-bar button,
.docs-url button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #5b4dff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.docs-url button {
  color: #64748b;
  font-size: 16px;
}

.docs-url {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
}

.docs-url code,
.docs-code pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.docs-url code {
  color: #12263f;
  font-size: 14px;
}

.docs-code {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  background: #101828;
  color: #e8eefc;
}

.docs-code-bar {
  padding: 10px 12px;
  color: #c5d2ea;
  font-size: 13px;
}

.docs-code-bar button {
  padding: 5px 12px;
  border-radius: 999px;
  background: #1e293b;
  color: #e8eefc;
  font-weight: 600;
}

.docs-code pre {
  margin: 0;
  padding: 2px 16px 16px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre;
}

.docs-code .is-flag {
  color: #86efac;
}

.docs-warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff7ed;
  border-color: #f8e0c2;
}

.docs-warn i {
  margin-top: 2px;
  color: #f59e0b;
  font-size: 18px;
}

.docs-warn strong {
  display: block;
  margin-bottom: 4px;
  color: #0b1b33;
}

.docs-help .docs-mark {
  margin-bottom: 10px;
}

.docs-help .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  border-radius: 10px;
}

.docs-help p {
  margin-top: 8px;
}

.docs-rail {
  display: grid;
  gap: 16px;
}

.dark-mode .docs-hero h1,
.dark-mode .docs-hero h2,
.dark-mode .docs-main h2,
.dark-mode .docs-rail h2,
.dark-mode .docs-base-head span,
.dark-mode .docs-warn strong {
  color: #f4f7ff;
}

.dark-mode .docs-rail article,
.dark-mode .docs-nav,
.dark-mode .docs-url {
  background: #152033;
  border-color: #2a3a56;
}

.dark-mode .docs-nav a,
.dark-mode .docs-rail a,
.dark-mode .docs-main p,
.dark-mode .docs-hero p {
  color: #c5d2ea;
}

@media (max-width: 1100px) {
  .docs-hero,
  .docs-shortcuts,
  .docs-layout,
  .ky-top,
  .ky-body,
  .ky-hero {
    grid-template-columns: 1fr;
  }

  .ky-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .ky-state,
  .ky-row > .bi-chevron-right {
    display: none;
  }
}

.dark-mode .qs .btn-outline-primary,
.dark-mode .zainbox-row-actions .btn-outline-primary {
  color: #d6e6ff;
  border-color: #6b93d6;
  background: #1c2942;
}

.dark-mode .qs .btn-outline-primary:hover,
.dark-mode .zainbox-row-actions .btn-outline-primary:hover {
  background: #243656;
  border-color: #9b93ff;
  color: #fff;
}

.dark-mode .docs-art::before {
  background: radial-gradient(ellipse at 68% 50%, rgba(37, 99, 235, 0.28), transparent 72%);
}

.dark-mode .docs-base {
  background: #1a2740;
  border-color: #2a3a56;
}

.dark-mode .docs-url code {
  color: #e8eefc;
}

.dark-mode .docs-nav a.is-current {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .docs-nav a.is-current i {
  color: #9ec2ff;
}

.dark-mode .docs-nav p {
  color: #8aa0c2;
}

.dark-mode .docs-warn {
  background: #2a2118;
  border-color: #5c4630;
}

.dark-mode .docs-warn p,
.dark-mode .docs-warn strong {
  color: #f6e7d4;
}

.dark-mode .ky-start {
  background: #1d3d72;
  color: #9ec2ff;
}

.dark-mode .ky-start:hover,
.dark-mode .ky-row:hover .ky-start {
  background: #24467f;
}

.dark-mode .ky-art img {
  mask-image: radial-gradient(circle at 50% 46%, #000 58%, transparent 80%);
}

.dark-mode .app-shell .sidebar {
  background: #0b1220;
}

.dark-mode .app-shell .topbar {
  background: #0e1524;
  border-bottom-color: #2a3a56;
}

.dark-mode .app-shell .search-box,
.dark-mode .app-shell .search-box:focus-within {
  background: #1c2942;
  border-color: #2a3a56;
  box-shadow: none;
  color: #c5d2ea;
}

.dark-mode .app-shell .search-box:focus-within {
  border-color: #6b93d6;
  box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.22);
}

.dark-mode .search-box input,
.dark-mode .search-box input::placeholder {
  color: #c5d2ea;
}

.dark-mode .search-box kbd {
  background: #243044;
  border-color: #2a3a56;
  color: #d6e6ff;
}

.dark-mode .app-shell .nav-heading {
  color: #8aa0c2;
}

.dark-mode .app-shell .nav-link,
.dark-mode .app-shell .nav-link i {
  color: #c5d2ea;
}

.dark-mode .app-shell .nav-link:hover,
.dark-mode .app-shell .nav-link:hover i {
  background: #162033;
  color: #f4f7ff;
}

.dark-mode .app-shell .nav-link.active,
.dark-mode .app-shell .nav-link.active i {
  background: #1d3d72;
  color: #d6e6ff;
}

.dark-mode .help-card {
  background: #162033;
}

.dark-mode .help-card p {
  color: #c5d2ea;
}

.dark-mode .help-support {
  background: #1c2942;
  border-color: #2a3a56;
  color: #d6e6ff;
}

.dark-mode .help-support:hover {
  background: #243656;
  color: #fff;
}

.dark-mode .profile-copy strong,
.dark-mode .profile > i {
  color: #f4f7ff;
}

.dark-mode .env-switch .select2-container--bootstrap-5 .select2-selection__rendered {
  color: #e8eefc;
}

.dark-mode .gs-video-thumb {
  border-color: #2a3a56;
  background:
    radial-gradient(120px 80px at 80% 20%, rgba(37, 99, 235, 0.28), transparent 70%),
    linear-gradient(180deg, #1c2942 0%, #162033 100%);
}

.dark-mode .gs-video-brand small {
  color: #c5d2ea;
}

.dark-mode .gs-play {
  background: #1d3d72;
  box-shadow: none;
}

.pf .page-heading {
  align-items: center;
  margin-bottom: 18px;
}

.pf .page-heading h1 {
  font-size: 32px;
  margin-bottom: 4px;
}

.pf .page-heading-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 18px;
}

.pf .page-heading p {
  font-size: 14px;
}

.pf .btn {
  border-radius: 10px;
  min-height: 36px;
  font-weight: 600;
}

.pf-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
  padding: 22px 22px 20px;
  border: 1px solid #e3eefc;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8f7ff 0%, #f3f0ff 100%);
}

.pf-hero::before,
.pf-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pf-hero::before {
  width: 460px;
  height: 200px;
  right: -30px;
  top: -90px;
  background: radial-gradient(circle, rgba(186, 214, 255, 0.75), transparent 70%);
}

.pf-hero::after {
  width: 560px;
  height: 160px;
  right: 80px;
  bottom: -90px;
  background: radial-gradient(circle, rgba(214, 230, 255, 0.9), transparent 68%);
}

.pf-person,
.pf-stats,
.pf-stat {
  position: relative;
  z-index: 1;
}

.pf-person {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.pf-avatar {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #12327a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex: none;
}

.pf-cam {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #12327a;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 13px;
}

.pf-person h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0b1b33;
}

.pf-role,
.pf-status {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f8ef;
  color: #067647;
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}

.pf-status {
  margin-left: 0;
}

.pf-person p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: #546578;
  font-size: 14px;
}

.pf-since {
  color: #66789b !important;
  font-size: 13px !important;
}

.pf-flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(16, 40, 90, 0.12);
  flex: none;
}

.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 12px;
  flex: none;
}

.pf-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 148px;
  padding: 14px 14px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(227, 238, 252, 0.9);
  box-shadow: 0 8px 20px rgba(16, 40, 90, 0.04);
}

.pf-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef0ff;
  color: #5b4dff;
  display: grid;
  place-items: center;
  flex: none;
}

.pf-stat-icon .bi,
.pf-card-icon .bi,
.pf-lock .bi,
.pf-cam .bi,
.pf .page-heading-mark .bi {
  display: block;
  line-height: 1;
}

.pf-stat-icon .bi::before,
.pf-card-icon .bi::before,
.pf-lock .bi::before,
.pf-cam .bi::before,
.pf .page-heading-mark .bi::before {
  display: block;
  vertical-align: 0;
}

.pf-stat strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #0b1b33;
  line-height: 1.1;
}

.pf-stat div > span {
  display: block;
  margin-top: 2px;
  color: #66789b;
  font-size: 12px;
}

.pf-split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 14px;
  margin-bottom: 14px;
}

.pf-card {
  background: #fff;
  border: 1px solid #e6edf6;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 1px 2px rgba(16, 40, 90, 0.04);
  scroll-margin-top: 84px;
}

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

.pf-card-title {
  display: flex;
  gap: 12px;
  min-width: 0;
}

.pf-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef0ff;
  color: #5b4dff;
  display: grid;
  place-items: center;
  flex: none;
}

.pf-card h2 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #0b1b33;
}

.pf-card-title p,
.pf-note {
  margin: 3px 0 0;
  color: #66789b;
  font-size: 13px;
}

.pf-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.pf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #3d4f66;
}

.pf-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #e3ebf6;
  border-radius: 12px;
  background: #fff;
  color: #8aa0c2;
}

.pf-control input,
.pf-control select {
  width: 100%;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0b1b33;
  font: inherit;
  font-weight: 500;
}

.pf-control select {
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
}

.pf-control input:disabled,
.pf-control select:disabled {
  color: #0b1b33;
  -webkit-text-fill-color: #0b1b33;
  opacity: 1;
  background-color: transparent;
  background-image: none;
}

.pf-control input::placeholder {
  color: #8aa0c2;
}

.pf-facts {
  margin: 0;
}

.pf-fact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #eef3f9;
}

.pf-fact:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pf-fact dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #546578;
  font-size: 14px;
  font-weight: 500;
}

.pf-fact dt i {
  color: #5b4dff;
}

.pf-fact dd {
  margin: 0;
  color: #0b1b33;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

.pf-secret {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e6edf6;
  border-radius: 14px;
}

.pf-lock {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef0ff;
  color: #5b4dff;
  display: grid;
  place-items: center;
  flex: none;
}

.pf-secret strong,
.pf-secret > div span {
  display: block;
}

.pf-secret strong {
  color: #0b1b33;
  font-size: 14px;
}

.pf-secret > div span {
  margin-top: 2px;
  color: #66789b;
  letter-spacing: 0.12em;
  font-size: 13px;
}

.pf-eye {
  margin-left: auto;
  color: #8aa0c2;
}

.pf-save {
  margin-top: 14px;
}

.pf-activity .pf-note {
  margin: 0;
}

@media (max-width: 1100px) {
  .pf-hero,
  .pf-split,
  .pf-fields {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pf-stats {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

.dark-mode .pf-hero {
  border-color: #2a3a56;
  background: linear-gradient(180deg, #1c2942 0%, #152033 100%);
}

.dark-mode .pf-hero::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), transparent 70%);
}

.dark-mode .pf-hero::after {
  background: radial-gradient(circle, rgba(29, 61, 114, 0.45), transparent 68%);
}

.dark-mode .pf-person h2,
.dark-mode .pf-stat strong,
.dark-mode .pf-card h2,
.dark-mode .pf-control input,
.dark-mode .pf-control select,
.dark-mode .pf-control input:disabled,
.dark-mode .pf-control select:disabled,
.dark-mode .pf-fact dd,
.dark-mode .pf-secret strong {
  color: #f4f7ff;
  -webkit-text-fill-color: #f4f7ff;
}

.dark-mode .pf-person p,
.dark-mode .pf-stat div > span,
.dark-mode .pf-card-title p,
.dark-mode .pf-note,
.dark-mode .pf-field,
.dark-mode .pf-fact dt,
.dark-mode .pf-secret > div span {
  color: #c5d2ea;
}

.dark-mode .pf-since {
  color: #8aa0c2 !important;
}

.dark-mode .pf-stat,
.dark-mode .pf-card,
.dark-mode .pf-control,
.dark-mode .pf-secret {
  background: #162033;
  border-color: #2a3a56;
  box-shadow: none;
}

.dark-mode .pf-stat-icon,
.dark-mode .pf-card-icon,
.dark-mode .pf-lock {
  background: #1d3d72;
  color: #9ec2ff;
}

.dark-mode .pf-fact {
  border-bottom-color: #2a3a56;
}

.dark-mode .pf-fact dt i {
  color: #9ec2ff;
}

.dark-mode .pf-role,
.dark-mode .pf-status {
  background: #14352a;
  color: #8ee4b4;
}

.dark-mode .pf-cam {
  border-color: #162033;
}

.sim-heading {
  align-items: flex-start;
}

.sim-heading p {
  max-width: 78ch;
}

.sim-docs {
  flex-shrink: 0;
  margin-top: 6px;
  background: #fff;
}

.sim-flag {
  width: 18px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(11, 27, 51, 0.08);
}

.sim-modes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sim-mode {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  margin: 0;
  padding: 14px;
  border: 1px solid #d5e0ef;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.sim-mode:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.sim-mode input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.sim-mode.is-selected {
  border-color: var(--blue);
  background: #f3f8ff;
  box-shadow: 0 0 0 1px var(--blue);
}

.sim-mode-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.sim-mode-copy strong {
  color: var(--ink);
  font-size: 14.5px;
}

.sim-mode-copy small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
}

.sim-radio {
  width: 18px;
  height: 18px;
  margin-left: auto;
  border: 1.5px solid #b7c6e0;
  border-radius: 999px;
  flex: 0 0 auto;
}

.sim-mode.is-selected .sim-radio {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 4px #fff;
  background: var(--blue);
}

.sim-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.sim-actions .btn-primary {
  min-width: 190px;
}

.sim-summary {
  margin: 0;
  display: grid;
}

.sim-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #e4eaf2;
}

.sim-summary > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sim-summary dt,
.sim-summary dd {
  margin: 0;
}

.sim-summary dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
}

.sim-summary dt i {
  color: #6d82a8;
}

.sim-summary dd {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-align: right;
}

.sim-summary dd .sim-flag {
  display: inline-block;
  vertical-align: -1px;
  margin-right: 6px;
}

.sim-banners {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.sim-banners p {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #f3f0ff;
  color: var(--ink);
  font-size: 14px;
}

.dark-mode .sim-docs,
.dark-mode .sim-mode {
  background: #162033;
  border-color: #2a3a56;
  color: #c5d2ea;
}

.dark-mode .sim-mode-copy strong,
.dark-mode .sim-summary dd,
.dark-mode .sim-banners p {
  color: #f4f7ff;
}

.dark-mode .sim-mode.is-selected {
  background: #1a2c4d;
  border-color: #3b82f6;
}

.dark-mode .sim-summary > div {
  border-bottom-color: #2a3a56;
}

.dark-mode .sim-banners p {
  background: #1a2c4d;
}

@media (max-width: 1100px) {
  .sim-modes {
    grid-template-columns: 1fr;
  }

  .sim-heading {
    flex-direction: column;
  }
}

.collect .gs-panel {
  padding-bottom: 16px;
}

.collect-skeleton .field {
  margin-bottom: 0;
}

.collect-skeleton .bone-input,
.collect-skeleton .bone-choice,
.collect-skeleton .bone-button,
.collect-skeleton .bone-tabs,
.collect-skeleton .bone-amount,
.collect-skeleton .bone-mark {
  width: 100%;
  border-radius: 10px;
}

.collect-skeleton .bone-input {
  height: 37px;
}

.collect-skeleton .bone-choice {
  height: 68px;
  border-radius: 14px;
}

.collect-skeleton .bone-button {
  width: 132px;
  height: 38px;
}

.collect-skeleton .bone-button.is-wide {
  width: 210px;
}

.collect-skeleton .bone-tabs {
  width: 92px;
  height: 36px;
  flex: 0 0 auto;
}

.collect-skeleton .collect-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.collect-skeleton .collect-stage .bone-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.collect-skeleton .collect-stage .bone-title {
  width: 42%;
}

.collect-skeleton .collect-stage .bone-label {
  width: 58%;
}

.collect-skeleton .bone-amount {
  width: 48%;
  height: 32px;
}

.collect-skeleton .collect-stage .bone-input {
  height: 40px;
}

.collect-skeleton .sim-summary > div {
  gap: 16px;
}

.collect-skeleton .sim-summary .bone-label {
  width: 38%;
}

.collect-skeleton .sim-summary .bone-stat {
  width: 28%;
}

.collect .gs-panel-mark.is-step {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #5b4dff;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.collect-combo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #5b6d8c;
}

.collect .field .collect-combo input,
.collect .field .collect-combo select {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 35px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  box-shadow: none;
}

.collect .field .collect-combo input[readonly] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collect-combo .sim-flag {
  width: 20px;
  height: 14px;
  box-shadow: 0 0 0 1px rgba(11, 27, 51, 0.16);
}

.collect .field .collect-combo select {
  padding-right: 28px;
}

.collect-code {
  color: #3d4f66;
  font-weight: 600;
  font-size: 14px;
}

.collect .field .collect-combo.is-zainbox select {
  padding-right: 108px;
}

.collect-live {
  position: absolute;
  top: 50%;
  right: 34px;
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f8ee;
  color: #0b7a45;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.collect-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.collect-types button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 37px;
  padding: 0 10px;
  border: 1px solid #d5e0ef;
  border-radius: 10px;
  background: #fff;
  color: #3d4f66;
  font-size: 14px;
  font-weight: 600;
}

.collect-types button.is-on {
  border-color: #5b4dff;
  background: #f4f8ff;
  color: #5b4dff;
  box-shadow: inset 0 0 0 1px #5b4dff;
}

.collect-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.collect-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collect-label .bi-info-circle {
  color: #7b8eae;
  font-size: 13px;
}

.collect .sim-mode {
  min-height: 68px;
  padding: 12px;
}

.collect-mode-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f3f6fb;
  color: #7b8eae;
  flex: 0 0 auto;
}

.collect .sim-mode.is-selected .collect-mode-icon {
  background: #eef0ff;
  color: #5b4dff;
}

.collect-preview {
  background: linear-gradient(180deg, #f7fbff 0%, #e4f0ff 62%, #d9e9ff 100%);
  border-color: #d7e6fb;
}

.collect-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.collect-tabs {
  display: flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid #d7e4f5;
  border-radius: 10px;
  background: #fff;
}

.collect-tabs button {
  min-height: 30px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #546578;
  font-size: 13px;
  font-weight: 600;
}

.collect-tabs button.is-on {
  background: #5b4dff;
  color: #fff;
}

.collect-stage {
  margin-top: 14px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(8 101 249 / 8%);
}

.collect-stage-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  text-align: center;
}

.collect-stage-mark {
  color: #5b4dff;
  font-size: 22px;
  line-height: 1;
}

.collect-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.collect-stage-top img {
  height: 22px;
  width: auto;
}

.collect-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #0b7a45;
  font-size: 11px;
  font-weight: 700;
}

.collect-stage-name {
  margin: 8px 0 0;
  color: #0b1b33;
  font-size: 16px;
  font-weight: 700;
}

.collect-stage-desc {
  margin: 2px 0 0;
  color: #5b6d8c;
  font-size: 13px;
}

.collect-stage-desc.is-empty {
  color: #8aa0c0;
}

.collect-stage-amount {
  margin: 8px 0 14px;
  color: #0b1b33;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.collect-stage .btn-primary {
  box-shadow: none;
}

.collect-stage .btn-outline-primary {
  color: #3d4f66;
  border-color: #d5e0ef;
  background: #fff;
}

.collect-fake {
  display: flex;
  width: 100%;
  justify-content: center;
  pointer-events: none;
}

.collect-or {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.collect-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  color: #7b8eae;
  font-size: 12px;
  font-weight: 600;
}

.collect-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #5b4dff;
}

.collect .pay-share .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.collect .pay-qr {
  margin: 0 auto;
}

.pay-payer {
  margin-bottom: 14px;
}

.collect-list {
  margin-top: 14px;
}

.pay-hint {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.pay-status {
  margin: 14px 0 0;
}

.pay-qr {
  width: 196px;
  margin: 12px auto;
  padding: 12px;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
}

.pay-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.pay-share {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.pay-sheet .tool-fields {
  grid-template-columns: 1fr;
}

.pay-payer {
  text-align: left;
}

.pay-sheet .form-error {
  text-align: center;
}

.pay-payer .form-error {
  text-align: left;
}

.pay-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  border: 0;
  border-top: 1px solid #e4eaf2;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.pay-row-open {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pay-row strong,
.pay-row small {
  display: block;
}

.pay-row strong {
  color: var(--ink);
}

.pay-row small {
  color: var(--muted);
  font-size: 12px;
}

.pay-row.is-selected {
  background: #f3f7ff;
}

.pay-body {
  min-height: 100dvh;
  background: var(--canvas);
}

.pay-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: safe center;
  overflow-x: hidden;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background: var(--canvas);
}

.pay-sheet {
  width: min(420px, 100%);
  margin-inline: auto;
  padding: 32px 28px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(11, 27, 51, 0.08);
}

.pay-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.pay-brand img {
  width: 148px;
  height: auto;
}

.pay-sheet h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: #0b1b33;
}

.pay-from,
.pay-for {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 14px;
}

.pay-from {
  color: var(--muted);
}

.pay-amount {
  margin: 18px 0 22px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: #0b1b33;
}

.pay-actions {
  display: grid;
  gap: 10px;
}

.pay-actions .btn,
.pay-check,
.pay-card-alt {
  width: 100%;
}

.pay-check,
.pay-card-alt {
  margin-top: 12px;
}

.pay-account-block {
  margin: 0 0 14px;
  padding: 18px 12px 16px;
  border-radius: 16px;
  background: #f4f7fb;
}

.pay-account {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: #0b1b33;
}

.pay-bank {
  margin: 6px 0 0;
  color: #4338ca;
  font-size: 15px;
  font-weight: 700;
}

.pay-send {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.pay-opening {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 8px 0 4px;
  text-align: center;
}

.pay-orbit {
  width: 72px;
  height: 72px;
  margin-bottom: 6px;
  display: grid;
  place-items: center;
}

.pay-orbit span {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid #d7e6ff;
  border-top-color: #5b4dff;
  animation: pay-spin 0.9s linear infinite;
}

.pay-opening-title {
  margin: 0;
  color: #0b1b33;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.pay-opening-copy {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 14px;
}

.pay-ghost {
  width: min(100%, 240px);
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.pay-ghost span {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e4eaf2 0%, #f8f7ff 45%, #e4eaf2 100%);
  background-size: 200% 100%;
  animation: pay-sheen 1.3s ease-in-out infinite;
}

.pay-ghost span:first-child {
  height: 28px;
}

.pay-ghost .is-short {
  width: 62%;
  justify-self: center;
}

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

@keyframes pay-sheen {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .pay-orbit span,
  .pay-ghost span {
    animation: none;
  }
}

.pay-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f3f0ff;
  color: var(--ink);
  font-size: 14px;
}

.pay-result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 600;
  color: #0b7a45;
}

.dark-mode .collect-combo,
.dark-mode .collect-types button,
.dark-mode .collect-tabs,
.dark-mode .collect-stage {
  background: #1c2942;
  border-color: #2a3a56;
  color: #e8eefc;
}

.dark-mode .collect-preview {
  background: linear-gradient(180deg, #162033 0%, #1a2c4d 100%);
  border-color: #2a3a56;
}

.dark-mode .collect-types button.is-on {
  background: #1a2c4d;
  color: #9b93ff;
}

.dark-mode .collect-tabs button.is-on {
  background: #5b4dff;
  color: #fff;
}

.dark-mode .collect-stage-name,
.dark-mode .collect-stage-amount,
.dark-mode .collect-code {
  color: #f4f7ff;
}

.dark-mode .collect-stage .btn-outline-primary {
  color: #e8eefc;
  border-color: #2a3a56;
  background: transparent;
}

.dark-mode .collect .sim-mode.is-selected .collect-mode-icon {
  background: #1a2c4d;
  color: #9b93ff;
}

.dark-mode .pay-sheet {
  background: #162033;
  border-color: #2a3a56;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.dark-mode .pay-sheet h1,
.dark-mode .pay-amount,
.dark-mode .pay-account,
.dark-mode .pay-opening-title,
.dark-mode .pay-row strong {
  color: #f4f7ff;
}

.dark-mode .pay-account-block {
  background: #1c2942;
}

.dark-mode .pay-bank {
  color: #9b93ff;
}

.dark-mode .pay-row {
  border-top-color: #2a3a56;
}

.dark-mode .pay-row.is-selected,
.dark-mode .pay-note {
  background: #1a2c4d;
}

@media (max-width: 720px) {
  .pay-screen {
    padding-inline: 16px;
  }

  .pay-sheet {
    width: 100%;
    padding: 28px 18px 22px;
  }

  .pay-sheet h1 {
    font-size: 26px;
  }

  .pay-amount,
  .pay-account {
    font-size: 32px;
  }

  .pay-row {
    flex-wrap: wrap;
  }

  .pay-row-open {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .pay-row-open .status-pill {
    grid-column: 2;
  }
}

.disburse-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.disburse-section-head h2 {
  margin: 0 0 4px;
  color: #0b1b33;
  font-size: 18px;
}

.disburse-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.disburse-section-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.disburse-section-tools .field {
  margin: 0;
  min-width: 180px;
}

.disburse-section-tools .zainbox-search {
  min-width: min(320px, 100%);
  flex: 1 1 240px;
}

.disburse-inline-form {
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  background: #f8f7ff;
}

.disburse-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe7f8;
  border-radius: 12px;
  background: #f3f7ff;
}

.disburse-bulk-bar p {
  margin: 0;
  font-weight: 600;
  color: #0b1b33;
}

.disburse-check-col {
  width: 36px;
}

.disburse-person,
.disburse-bank,
.disburse-template-name {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.disburse-person b,
.disburse-template-name b {
  min-width: 0;
}

.sub-avatar.is-blue {
  background: #e8f0ff;
  color: #245bdb;
}

.sub-avatar.is-sky {
  background: #e7f6ff;
  color: #0f7aa5;
}

.sub-avatar.is-mint {
  background: #e7faf4;
  color: #0f8a6a;
}

.disburse-bank-mark,
.disburse-template-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  background: #eef3fb;
  color: #546578;
}

.disburse-template-mark {
  color: #245bdb;
  background: #e8f0ff;
}

.disburse-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
}

.disburse-tag.is-blue {
  background: #e8f0ff;
  color: #245bdb;
}

.disburse-tag.is-violet {
  background: #efe7ff;
  color: #6d4aff;
}

.disburse-tag.is-green {
  background: #e7f8ee;
  color: #1c9d55;
}

.disburse-tag.is-amber {
  background: #fff3df;
  color: #d4880a;
}

.disburse-tag.is-sky {
  background: #e7f6ff;
  color: #0f7aa5;
}

.disburse .page-heading {
  align-items: flex-start;
}

.disburse .page-heading p {
  max-width: 52rem;
}

.disburse .gs-panel {
  padding-bottom: 16px;
}

.disburse-tabs {
  margin-bottom: 18px;
}

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

.disburse-kpi-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 1px 0;
}

.disburse-kpi-value strong {
  margin: 0;
}

.disburse-kpis .gs-stat-copy .kpi-note {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.disburse-run-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.disburse-runs-table .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.disburse-runs-table .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.disburse-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  padding: 28px 8px 12px;
}

.disburse-empty h2 {
  margin: 0;
  color: #0b1b33;
  font-size: 18px;
}

.disburse-empty p {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.disburse-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.disburse-pager > p {
  margin: 0;
}

.disburse-pager .zainbox-pager-controls {
  justify-self: center;
}

.disburse-per-page {
  justify-self: end;
  margin: 0;
  min-width: 110px;
}

.disburse-per-page select {
  min-height: 38px;
}

.disburse-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.disburse-enquire {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.disburse-create,
.disburse-pick {
  display: grid;
  gap: 16px;
}

.disburse-create .gs-panel-head {
  align-items: flex-start;
}

.disburse-pick h3,
.disburse-run-head h2 {
  margin: 0;
  color: #0b1b33;
  font-size: 16px;
}

.disburse-pick-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.disburse-pick-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e4eaf2;
  border-radius: 12px;
  background: #fff;
}

.disburse-pick-list li.is-on {
  background: #f3f7ff;
  border-color: #d3e2f7;
}

.disburse-pick-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  cursor: pointer;
}

.disburse-pick-list b,
.disburse-pick-list small {
  display: block;
}

.disburse-pick-list small {
  color: var(--muted);
  font-size: 12px;
}

.disburse-pick-list .field {
  margin: 0;
}

.disburse-create-actions,
.disburse-run-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.disburse-run-head > div:first-child {
  display: grid;
  gap: 8px;
}

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

@media (max-width: 1100px) {
  .disburse-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .disburse-split,
  .disburse-pick-list li,
  .disburse-run-head,
  .disburse-kpis,
  .disburse-run-kpis,
  .disburse-pager {
    grid-template-columns: 1fr;
  }

  .disburse-section-head,
  .disburse-section-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .disburse-pager .zainbox-pager-controls,
  .disburse-per-page {
    justify-self: start;
  }
}

.dark-mode .disburse-section-head h2,
.dark-mode .disburse-pick h3,
.dark-mode .disburse-run-head h2,
.dark-mode .disburse-empty h2,
.dark-mode .disburse-bulk-bar p {
  color: #f4f7ff;
}

.dark-mode .disburse-inline-form,
.dark-mode .disburse-bulk-bar {
  background: #162033;
  border-color: #2a3a56;
}

.dark-mode .disburse-pick-list li {
  background: #162033;
  border-color: #2a3a56;
}

.dark-mode .disburse-pick-list li.is-on {
  background: #1c2942;
}


/* --- Koodify brand layer (ported shell from Zainpay) --- */
.gs-mark::before { content: "K"; }
.brand-logo { height: 28px; width: auto; }

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
textarea.form-control:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 0.25rem rgba(91, 77, 255, 0.22);
}

.app-shell .search-box:focus-within {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.16);
}

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: var(--blue-mid) !important;
  box-shadow: 0 0 0 0.25rem rgba(91, 77, 255, 0.22) !important;
}

.btn-primary {
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(91, 77, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 48%, #6d28d9 100%);
  border-color: transparent;
}

.btn-outline-primary {
  color: var(--blue-deep);
  border-color: var(--blue-mid);
}

.nav-link.active,
.app-shell .nav-link.active {
  color: var(--blue);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(11, 27, 51, 0.04),
    0 8px 20px rgba(91, 77, 255, 0.12);
}

.nav-link.active i,
.app-shell .nav-link.active i {
  color: var(--blue);
  background: transparent;
}

.login-card h1,
.page-heading,
.dash-hero h2,
.gs-panel-title h2 {
  color: var(--navy);
}

.login-card > p,
.dash-hero p,
.gs-panel-title p,
.merchant-panel .lede {
  color: var(--muted);
}

.login-alt a,
.login-legal a,
.help-support,
.menu-link,
.field-note a {
  color: var(--blue);
}
