/* Mallss Nexus - customer workspace pages */
.nx-page {
  --nx-teal: #168c83;
  --nx-ink: #172033;
  --nx-muted: #667085;
  --nx-line: #e7ebf2;
  --nx-bg: #f7f6fc;
  --nx-blue: #6941c6;
  --nx-blue-dark: #4f2aa5;
  --nx-green: #16865b;
  --nx-red: #c43d4b;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 22px 24px 58px;
  color: var(--nx-ink);
  font-family: Inter, "Open Sans", sans-serif;
}
.nx-page * { box-sizing: border-box; }
.nx-page a { text-decoration: none; }
.nx-page button, .nx-page input, .nx-page select, .nx-page textarea { font: inherit; }
.nx-page button, .nx-page a, .nx-page input, .nx-page select { -webkit-tap-highlight-color: transparent; }
.nx-page :focus-visible { outline: 3px solid rgba(49,94,232,.24); outline-offset: 2px; }
.nx-eyebrow {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  color: var(--nx-blue); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}
.nx-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--nx-teal); box-shadow: 0 0 0 4px #dff5f0; }
.nx-page-header {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 24px;
}
.nx-page-header h1 { margin: 0; color: #151d2f; font-size: clamp(26px,3vw,34px); line-height: 1.15; font-weight: 750; letter-spacing: -.045em; }
.nx-page-header p { max-width: 650px; margin: 10px 0 0; color: var(--nx-muted); font-size: 14px; line-height: 1.7; }
.nx-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.nx-btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 9px;
  border: 1px solid transparent; border-radius: 12px; padding: 11px 15px;
  font-size: 13px; line-height: 1.3; font-weight: 700; cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.nx-btn:hover { transform: translateY(-1px); }
.nx-btn:disabled { cursor: not-allowed; opacity: .65; transform: none; }
.nx-btn-primary { color: #fff; background: linear-gradient(115deg,#7750d6,#5935b1); box-shadow: 0 7px 17px rgba(105,65,198,.22); }
.nx-btn-primary:hover { background: linear-gradient(115deg,#6841c4,#4b2b9e); }
.nx-btn-secondary { color: #344054; background: #fff; border-color: #dfe5ef; }
.nx-btn-secondary:hover { background: #f8faff; border-color: #c7d2e4; }
.nx-btn-quiet { color: var(--nx-blue); background: #f0ebff; }
.nx-btn-danger { color: #a72537; background: #fff4f4; border-color: #f3d5d8; }
.nx-btn-sm { padding: 8px 11px; border-radius: 9px; font-size: 12px; }
.nx-card {
  min-width: 0; border: 1px solid var(--nx-line); border-radius: 18px;
  background: #fff; box-shadow: 0 7px 24px rgba(22,35,65,.035);
}
.nx-card-pad { padding: 22px; }
.nx-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.nx-card-heading h2, .nx-section-title { margin: 0; color: #202a3d; font-size: 16px; line-height: 1.35; font-weight: 750; letter-spacing: -.02em; }
.nx-card-heading p { margin: 6px 0 0; color: var(--nx-muted); font-size: 12.5px; line-height: 1.65; }
.nx-icon-tile {
  display: inline-flex; flex: 0 0 auto; justify-content: center; align-items: center;
  width: 42px; height: 42px; border-radius: 13px; color: var(--nx-blue); background: #f0ebff; font-size: 16px;
}
.nx-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-bottom: 22px; }
.nx-metric { padding: 16px 18px; border: 1px solid var(--nx-line); border-radius: 15px; background: #fff; }
.nx-metric-label { display: block; color: var(--nx-muted); font-size: 11.5px; font-weight: 650; }
.nx-metric-value { display: block; margin-top: 7px; color: #1b2639; font-size: 20px; font-weight: 800; letter-spacing: -.035em; }
.nx-metric-foot { display: block; margin-top: 5px; color: #8892a5; font-size: 11px; line-height: 1.5; }
.nx-content-grid { display: grid; grid-template-columns: minmax(300px,.86fr) minmax(0,1.4fr); gap: 18px; align-items: start; }
.nx-form-stack { display: grid; gap: 16px; }
.nx-field { display: grid; gap: 7px; min-width: 0; }
.nx-field label { color: #344054; font-size: 12px; font-weight: 750; }
.nx-field small { color: #7a8599; font-size: 11px; line-height: 1.6; }
.nx-input, .nx-select, .nx-textarea {
  display: block; width: 100%; min-height: 45px; padding: 11px 13px;
  color: #172033; background: #fff; border: 1px solid #dce2ec; border-radius: 11px;
  font-size: 13px; outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.nx-input::placeholder, .nx-textarea::placeholder { color: #9aa4b5; }
.nx-input:focus, .nx-select:focus, .nx-textarea:focus { border-color: #7290f2; box-shadow: 0 0 0 3px rgba(49,94,232,.1); }
.nx-textarea { min-height: 100px; resize: vertical; }
.nx-inline-field { display: flex; gap: 9px; }
.nx-inline-field .nx-input { min-width: 0; }
.nx-note {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 13px; border: 1px solid #dbe6ff;
  border-radius: 12px; background: #f5f8ff; color: #45536e; font-size: 11.5px; line-height: 1.65;
}
.nx-note i { margin-top: 2px; color: var(--nx-blue); }
.nx-note-warning { border-color: #f4dfbd; background: #fffaf1; color: #74521c; }
.nx-note-warning i { color: #b7791f; }
.nx-alert { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; margin-bottom: 18px; border-radius: 12px; font-size: 12.5px; line-height: 1.6; }
.nx-alert-success { color: #126342; background: #effaf4; border: 1px solid #cceedd; }
.nx-alert-error { color: #9f2833; background: #fff3f3; border: 1px solid #f3d2d5; }
.nx-amount-presets { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.nx-preset {
  padding: 9px 6px; color: #44516a; background: #f8faff; border: 1px solid #e1e7f3; border-radius: 10px;
  font-size: 11.5px; font-weight: 700; cursor: pointer;
}
.nx-preset:hover, .nx-preset:focus-visible { color: var(--nx-blue); background: #eef3ff; border-color: #b9caff; }
.nx-section-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 15px; }
.nx-section-bar h2 { margin: 0; color: #202a3d; font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.nx-section-bar p { margin: 5px 0 0; color: var(--nx-muted); font-size: 12px; line-height: 1.5; }
.nx-toolbar { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.nx-toolbar .nx-input, .nx-toolbar .nx-select { min-height: 39px; padding: 8px 11px; font-size: 12px; }
.nx-table-wrap { width: 100%; overflow-x: auto; }
.nx-table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
.nx-table th { padding: 12px 16px; color: #7c879a; background: #f9fafc; border-bottom: 1px solid var(--nx-line); font-size: 10.5px; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.nx-table td { padding: 14px 16px; color: #344054; border-bottom: 1px solid #edf0f5; font-size: 12px; vertical-align: middle; }
.nx-table tbody tr:last-child td { border-bottom: 0; }
.nx-table tbody tr:hover { background: #fbfcff; }
.nx-table .nx-amount-cell { color: #202a3d; font-weight: 800; font-variant-numeric: tabular-nums; }
.nx-table-main { display: block; color: #202a3d; font-size: 12px; font-weight: 750; }
.nx-table-sub { display: block; margin-top: 4px; color: #8791a3; font-size: 10.5px; }
.nx-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: capitalize; }
.nx-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.nx-status-pending { color: #98631b; background: #fff5dc; }
.nx-status-paid, .nx-status-success { color: #087c6b; background: #e1f7f1; }
.nx-status-expired, .nx-status-rejected { color: #a73240; background: #fff0f1; }
.nx-status-unknown { color: #596579; background: #edf0f5; }
.nx-link { display: inline-flex; align-items: center; gap: 6px; color: var(--nx-blue); font-size: 11.5px; font-weight: 750; }
.nx-link:hover { color: var(--nx-blue-dark); }
.nx-empty { padding: 48px 20px; text-align: center; }
.nx-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 13px; border-radius: 15px; background: #f0f3fa; color: #65718b; font-size: 18px; }
.nx-empty h3 { margin: 0; color: #263248; font-size: 14px; font-weight: 750; }
.nx-empty p { max-width: 350px; margin: 7px auto 0; color: var(--nx-muted); font-size: 12px; line-height: 1.7; }
.nx-empty .nx-btn { margin-top: 15px; }
.nx-two-forms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 24px; align-items: start; }
.nx-option-row { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1px solid #e5eaf3; border-radius: 12px; background: #fbfcfe; }
.nx-option-row i { margin-top: 2px; color: var(--nx-blue); }
.nx-option-row strong { display: block; color: #263248; font-size: 12px; }
.nx-option-row span { display: block; margin-top: 4px; color: #788499; font-size: 11px; line-height: 1.55; }
.nx-summary { display: grid; gap: 10px; padding: 14px; border: 1px solid #e6ebf3; background: #f9fbff; border-radius: 12px; }
.nx-summary-row { display: flex; justify-content: space-between; gap: 15px; color: #667085; font-size: 12px; }
.nx-summary-row strong { color: #253149; text-align: right; font-weight: 800; }
.nx-summary-row-total { padding-top: 10px; border-top: 1px solid #e2e8f2; font-weight: 750; }
.nx-summary-row-total strong { color: var(--nx-blue); font-size: 15px; }
.nx-profile-hero { display: flex; align-items: center; gap: 16px; padding: 21px; margin-bottom: 20px; border: 1px solid #e3dafb; border-radius: 20px; background: linear-gradient(115deg,#f5f0ff 0%,#fff 62%); }
.nx-avatar { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: linear-gradient(140deg,#8054db,#4b299f); font-size: 22px; font-weight: 800; box-shadow: 0 7px 18px rgba(105,65,198,.24); }
.nx-profile-hero h2 { margin: 0; color: #1e293b; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.nx-profile-hero p { margin: 5px 0 0; color: #748097; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.nx-profile-badge { display: inline-flex; margin-top: 8px; padding: 4px 8px; color: #5b38a3; background: #efe8ff; border-radius: 7px; font-size: 10px; font-weight: 800; }
.nx-profile-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 18px; align-items: start; }
.nx-key-display { display: flex; gap: 8px; align-items: stretch; }
.nx-key-display .nx-input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.nx-key-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nx-divider { height: 1px; margin: 20px 0; border: 0; background: #edf0f5; }
.nx-helper { color: #8993a6; font-size: 11px; line-height: 1.7; }
.nx-docs-layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; align-items: start; }
.nx-docs-sidebar { position: sticky; top: 82px; padding: 15px; }
.nx-docs-sidebar-label { margin: 2px 8px 10px; color: #8792a5; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.nx-docs-nav { display: grid; gap: 4px; }
.nx-docs-nav a { padding: 9px 10px; border-radius: 9px; color: #59657b; font-size: 12px; font-weight: 650; }
.nx-docs-nav a:hover { color: var(--nx-blue); background: #f0f4ff; }
.nx-docs-main { min-width: 0; display: grid; gap: 16px; }
.nx-doc-section { padding: 22px; scroll-margin-top: 82px; }
.nx-doc-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 15px; }
.nx-doc-number { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 11px; color: var(--nx-blue); background: #edf2ff; font-size: 12px; font-weight: 850; }
.nx-doc-title h2 { margin: 1px 0 5px; color: #202a3d; font-size: 15px; font-weight: 800; }
.nx-doc-title p { margin: 0; color: var(--nx-muted); font-size: 12px; line-height: 1.6; }
.nx-endpoint { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 9px; color: #28354a; background: #f5f7fb; border: 1px solid #e5eaf3; border-radius: 8px; font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.nx-method { display: inline-flex; padding: 3px 6px; border-radius: 5px; color: #0e6a47; background: #dcf7e8; font-family: Inter, sans-serif; font-size: 9px; font-weight: 900; }
.nx-codebox { position: relative; overflow: hidden; border: 1px solid #202a3b; border-radius: 12px; background: #121a29; }
.nx-codebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 13px; border-bottom: 1px solid rgba(255,255,255,.1); color: #bac5d7; font-size: 10px; }
.nx-copy-code { border: 0; padding: 5px 8px; border-radius: 6px; color: #e4eaf6; background: #283449; cursor: pointer; font-size: 10px; font-weight: 700; }
.nx-copy-code:hover { background: #34445f; }
.nx-codebox pre { margin: 0; padding: 15px; overflow-x: auto; color: #d8e3f4; font-size: 11.5px; line-height: 1.75; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.nx-doc-list { padding-left: 18px; color: #59657b; font-size: 12px; line-height: 1.85; }
.nx-doc-list li + li { margin-top: 4px; }
.nx-response { padding: 14px; border: 1px solid #e6ebf3; background: #f8faff; border-radius: 10px; color: #506078; font-size: 11px; line-height: 1.7; }
.nx-response strong { display: block; margin-bottom: 7px; color: #35425a; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; }
.nx-methods-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 21px; }
.nx-methods-toolbar .nx-input { max-width: 450px; }
.nx-method-group { margin-top: 26px; }
.nx-method-group:first-of-type { margin-top: 0; }
.nx-method-group-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 13px; }
.nx-method-group-head h2 { margin: 0; color: #202a3d; font-size: 16px; font-weight: 800; letter-spacing: -.025em; }
.nx-method-group-head p { margin: 5px 0 0; color: var(--nx-muted); font-size: 12px; line-height: 1.6; }
.nx-method-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.nx-method-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--nx-line); border-radius: 13px; background: #fff; }
.nx-method-card:hover { border-color: #d8c9f8; box-shadow: 0 6px 18px rgba(22,35,65,.04); }
.nx-method-symbol { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; color: var(--nx-blue); background: #f0f4ff; font-size: 15px; }
.nx-method-card strong { display: block; color: #253149; font-size: 12px; line-height: 1.4; }
.nx-method-card small { display: block; margin-top: 4px; color: #8993a6; font-size: 10px; line-height: 1.5; }
.nx-method-count { display: inline-flex; align-items: center; height: 23px; padding: 0 8px; border-radius: 999px; color: #5d6b84; background: #f0eef7; font-size: 10px; font-weight: 800; }
.nx-footer-space { margin-top: 22px; }
@media (max-width: 900px) {
  .nx-content-grid, .nx-profile-layout { grid-template-columns: minmax(0,1fr); }
  .nx-docs-layout { grid-template-columns: 1fr; }
  .nx-docs-sidebar { position: static; }
  .nx-docs-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nx-method-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .nx-page { padding: 16px 15px 38px; }
  .nx-page-header { align-items: flex-start; flex-direction: column; gap: 15px; margin-bottom: 19px; }
  .nx-header-actions { justify-content: flex-start; width: 100%; }
  .nx-page-header h1 { font-size: 27px; }
  .nx-page-header p { font-size: 12.5px; }
  .nx-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .nx-metric:last-child { grid-column: 1 / -1; }
  .nx-metric { padding: 13px; }
  .nx-metric-value { font-size: 18px; }
  .nx-card-pad { padding: 16px; }
  .nx-two-forms { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .nx-section-bar { align-items: flex-start; flex-direction: column; }
  .nx-toolbar { width: 100%; }
  .nx-toolbar .nx-input { flex: 1; min-width: 0; width: 100%; }
  .nx-toolbar .nx-select { flex: 1; min-width: 0; }
  .nx-table th, .nx-table td { padding: 12px; }
  .nx-profile-hero { align-items: flex-start; padding: 16px; }
  .nx-avatar { width: 50px; height: 50px; border-radius: 15px; }
  .nx-key-display { flex-direction: column; }
  .nx-key-actions { width: 100%; }
  .nx-key-actions .nx-btn { flex: 1; }
  .nx-docs-nav { grid-template-columns: minmax(0,1fr); }
  .nx-doc-section { padding: 16px; }
  .nx-method-grid { grid-template-columns: minmax(0,1fr); }
  .nx-methods-toolbar { align-items: stretch; flex-direction: column; }
  .nx-methods-toolbar .nx-input { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-page *, .nx-page *::before, .nx-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
