@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap";

/* src/style.css */
:root {
  color: #151a17;
  background: #f4f1e8;
  font-family:
    "Manrope",
    system-ui,
    sans-serif;
  font-synthesis: none;
  --ink: #151a17;
  --muted: #68706a;
  --line: #d5d2c8;
  --paper: #fbfaf5;
  --acid: #d9ff4f;
  --blue: #2254d8;
  --danger: #b92f22;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(21, 26, 23, .032) 1px, transparent 1px),
    linear-gradient(
      90deg,
      rgba(21, 26, 23, .032) 1px,
      transparent 1px),
    #f4f1e8;
  background-size: 32px 32px;
}
body.modal-open {
  overflow: hidden;
}
button,
input,
textarea {
  font: inherit;
}
button {
  border-radius: 0;
}
[hidden] {
  display: none !important;
}
.shell {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 30px;
  background: var(--ink);
  color: var(--acid);
  font: 500 13px/1 "DM Mono", monospace;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.account-button {
  padding: 10px 13px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: 500 10px/1 "DM Mono", monospace;
}
.account-button:hover {
  background: var(--blue);
  border-color: var(--blue);
}
.account-button:disabled {
  opacity: .62;
  cursor: wait;
}
.wallet-identity {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 245, .72);
  color: var(--ink);
  font: 500 10px/1 "DM Mono", monospace;
}
.wallet-identity i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #62a63b;
  box-shadow: 0 0 0 4px rgba(98, 166, 59, .14);
}
.wallet-identity code {
  font: inherit;
}
.hero {
  padding: 52px 0 58px;
}
.eyebrow {
  margin: 0;
  color: var(--blue);
  font: 500 11px/1.3 "DM Mono", monospace;
  letter-spacing: .13em;
}
.hero h1 {
  max-width: 760px;
  margin: 14px 0 18px;
  font-size: clamp(46px, 5.8vw, 76px);
  line-height: .96;
  letter-spacing: -.068em;
}
.lede {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.benefits span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: rgba(251, 250, 245, .72);
  font: 500 9px/1 "DM Mono", monospace;
}
.flow {
  display: flex;
  align-items: center;
  margin-top: 26px;
}
.flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
}
.flow b {
  color: var(--muted);
  font: 400 9px "DM Mono", monospace;
}
.flow i {
  width: 54px;
  height: 1px;
  margin: 0 14px;
  background: var(--line);
}
.catalog {
  padding: 76px 0 92px;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 34px;
}
.section-head h2,
.checkout h2,
.order-result h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.055em;
}
.section-head > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  padding: 25px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
}
.product-card.selected {
  border-color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink);
}
.product-card.unavailable {
  opacity: .62;
}
.product-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font: 400 9px "DM Mono", monospace;
}
.product-card h3 {
  margin: 34px 0 10px;
  font-size: 21px;
  letter-spacing: -.035em;
}
.product-card > p {
  min-height: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.network-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  background: #efede6;
  font: 500 8px "DM Mono", monospace;
  text-transform: uppercase;
}
.product-price {
  margin: 30px 0 18px;
}
.product-price strong {
  display: block;
  font-size: 37px;
  line-height: 1;
  letter-spacing: -.055em;
}
.product-price span {
  display: block;
  margin-top: 7px;
  font: 500 9px "DM Mono", monospace;
}
.product-facts {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.product-facts div {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
}
.product-facts dt,
.product-facts dd {
  margin: 0;
  font: 400 9px "DM Mono", monospace;
}
.product-facts dt {
  color: var(--muted);
}
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}
.choose-button,
.primary-button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding: 14px 15px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.product-actions .choose-button {
  margin-top: 0;
}
.product-actions .batch-choice {
  background: var(--ink);
  color: white;
}
.product-actions .batch-choice b {
  color: var(--acid);
}
.choose-button:hover,
.primary-button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--acid);
}
.empty-state {
  grid-column: 1/-1;
  padding: 52px;
  border: 1px dashed var(--line);
  background: var(--paper);
  text-align: center;
}
.empty-state strong {
  font-size: 24px;
}
.empty-state p {
  margin: 10px 0 0;
  color: var(--muted);
}
.empty-state.error {
  border-color: #e4a7a1;
}
.service-modal {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #3c423e;
  background: transparent;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38);
  opacity: 0;
  transform: translateY(12px) scale(.985);
  transition: opacity 160ms ease, transform 160ms ease;
}
.service-modal.is-visible {
  opacity: 1;
  transform: none;
}
.service-modal::backdrop {
  background: rgba(10, 14, 11, .72);
  backdrop-filter: blur(5px);
  animation: modal-backdrop-in 160ms ease both;
}
.service-modal-panel {
  position: relative;
  max-height: calc(100dvh - 34px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--ink);
}
.modal-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  padding: 9px 11px;
  border: 1px solid #555d57;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: 500 9px/1 "DM Mono", monospace;
}
.modal-close:hover {
  background: var(--acid);
  border-color: var(--acid);
}
@keyframes modal-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.checkout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr);
  gap: clamp(48px, 7vw, 92px);
  align-items: center;
  min-height: min(720px, calc(100dvh - 34px));
  padding: clamp(44px, 6vw, 76px);
  background: var(--ink);
  color: white;
}
.checkout .eyebrow {
  color: var(--acid);
}
.checkout h2 {
  color: white;
  font-size: clamp(46px, 5.2vw, 70px);
}
.checkout > div > p:not(.eyebrow) {
  max-width: 520px;
  color: #afb5af;
  line-height: 1.8;
}
.checkout.batch-checkout {
  align-items: start;
  gap: clamp(36px, 5vw, 64px);
  min-height: auto;
  padding: clamp(38px, 4.5vw, 58px);
}
.checkout.batch-checkout h2 {
  font-size: clamp(38px, 4.3vw, 56px);
}
.checkout.batch-checkout .request-meta {
  margin-top: 28px;
}
.checkout.batch-checkout .expected-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 12px 14px;
}
.checkout.batch-checkout .expected-result strong {
  margin-top: 0;
  text-align: right;
}
.checkout.batch-checkout .expected-result p {
  display: none;
}
.request-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 42px 0 0;
  border-top: 1px solid #3c423e;
}
.request-meta div {
  padding: 16px 12px 0 0;
}
.request-meta dt {
  color: #7e867f;
  font: 400 8px "DM Mono", monospace;
}
.request-meta dd {
  margin: 6px 0 0;
  overflow: hidden;
  font: 500 10px "DM Mono", monospace;
  text-overflow: ellipsis;
}
.expected-result {
  margin-top: 26px;
  padding: 16px;
  border: 1px solid #3c423e;
  background: #1e2420;
}
.expected-result > span {
  display: block;
  color: #7e867f;
  font: 400 8px "DM Mono", monospace;
}
.expected-result strong {
  display: block;
  margin-top: 8px;
  color: var(--acid);
  font-size: 13px;
}
.expected-result p {
  margin: 7px 0 0;
  color: #aeb5af;
  font-size: 10px;
  line-height: 1.65;
}
.batch-topup {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #53604a;
  background: #273023;
  transition: border-color 160ms ease, background 160ms ease;
}
.batch-topup.has-balance {
  border-color: #758f54;
  background: #253020;
}
.batch-topup.needs-recharge {
  border-color: #a78c4e;
  background: #312c20;
}
.batch-channel-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.batch-channel-state > span,
.batch-recharge-setting label > span,
.batch-deposit-total > span {
  display: block;
  color: #9ba59d;
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .04em;
}
.batch-channel-state strong {
  display: block;
  margin-top: 9px;
  color: var(--acid);
  font-size: 18px;
  line-height: 1.35;
}
.batch-topup.needs-recharge .batch-channel-state strong {
  color: #ffd66b;
}
.batch-channel-state p {
  margin: 8px 0 0;
  color: #c4ccc5;
  font-size: 11px;
  line-height: 1.65;
}
.batch-recharge-setting {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 12px;
  align-items: stretch;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #4c574e;
}
.batch-topup input {
  width: 100%;
  margin-top: 8px;
  padding: 11px 12px;
  border: 1px solid #697269;
  background: #171c18;
  color: white;
  font: 500 14px "DM Mono", monospace;
}
.batch-topup input:focus {
  border-color: var(--acid);
  outline: 2px solid rgba(217, 255, 79, .15);
}
.batch-deposit-total {
  padding: 13px 14px;
  border: 1px solid #5b665d;
  background: #171c18;
}
.batch-deposit-total strong {
  display: block;
  margin-top: 8px;
  color: var(--acid);
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
}
.batch-deposit-total small {
  display: block;
  margin-top: 9px;
  color: #c3cbc4;
  font: 500 9px/1.55 "DM Mono", monospace;
}
.batch-recharge-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--ink);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}
.batch-recharge-button,
.batch-recharge-status {
  grid-column: 1 / -1;
}
.batch-recharge-button:hover {
  background: white;
}
.batch-recharge-button:disabled {
  cursor: wait;
  opacity: .5;
}
.batch-recharge-status {
  margin: 0;
  padding: 11px 12px;
  border: 1px solid #758f54;
  background: #1f291b;
  color: #e5f4c7;
  font-size: 10px;
  line-height: 1.6;
}
.batch-recharge-status.error {
  border-color: #a85e58;
  background: #34221f;
  color: #ffc4bc;
}
.request-card {
  padding: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--acid);
}
.batch-call-gate {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--ink);
  background: white;
  box-shadow: 4px 4px 0 var(--line);
}
.batch-call-gate.ready {
  background: #eef8d0;
  box-shadow: 4px 4px 0 var(--acid);
}
.batch-call-gate.blocked {
  border-color: #b9923f;
  background: #fff7d5;
}
.batch-call-gate > span {
  color: var(--muted);
  font: 600 9px "DM Mono", monospace;
  letter-spacing: .05em;
}
.batch-call-gate strong {
  display: block;
  margin-top: 8px;
  font-size: 17px;
}
.batch-call-gate p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}
.field {
  display: block;
  margin-top: 20px;
}
.field:first-child {
  margin-top: 0;
}
.field span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  outline: none;
  background: white;
  color: var(--ink);
  font-size: 12px;
}
.field textarea {
  min-height: 156px;
  resize: vertical;
  font-family: "DM Mono", monospace;
  line-height: 1.65;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(34, 84, 216, .13);
}
.dynamic-request-fields > p {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
}
.runtime-field small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}
.runtime-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: white;
}
.runtime-check input {
  width: auto;
  accent-color: var(--blue);
}
.field .runtime-check span {
  display: inline;
  margin: 0;
  color: var(--ink);
}
.primary-button {
  margin-top: 24px;
  background: var(--ink);
  color: white;
}
.primary-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}
.safety-note {
  margin: 13px 0 0;
  color: var(--muted);
  font: 400 9px/1.6 "DM Mono", monospace;
}
.status {
  margin-top: 16px;
  padding: 12px;
  border: 1px solid #d5c278;
  background: #fff7d5;
  font-size: 11px;
  line-height: 1.5;
}
.status.success {
  border-color: #9db45e;
  background: #eef8d0;
}
.status.error {
  border-color: #e4a7a1;
  background: #fff0ed;
  color: var(--danger);
}
.call-progress {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 var(--acid);
}
.call-progress-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.call-progress-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.call-progress-head p {
  margin: 6px 0 0;
  color: #b8c0b9;
  font-size: 10px;
  line-height: 1.55;
}
.call-progress-head code {
  color: var(--acid);
  font: 500 10px "DM Mono", monospace;
  font-variant-numeric: tabular-nums;
}
.call-progress-spinner {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  border: 2px solid #4c554e;
  border-top-color: var(--acid);
  animation: call-progress-spin 760ms linear infinite;
}
.call-progress-track {
  height: 3px;
  margin-top: 16px;
  overflow: hidden;
  background: #3c443e;
}
.call-progress-track i {
  display: block;
  width: 12%;
  height: 100%;
  background: var(--acid);
  transition: width 220ms ease-out;
}
.call-progress[data-stage=signature] .call-progress-track i {
  width: 38%;
}
.call-progress[data-stage=service] .call-progress-track i {
  width: 72%;
}
.call-progress[data-stage=result] .call-progress-track i {
  width: 100%;
}
.call-progress-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.call-progress-steps li {
  color: #747e76;
  font: 500 8px "DM Mono", monospace;
}
.call-progress-steps li.current {
  color: var(--acid);
}
.call-progress-steps li.complete {
  color: #d6ddd7;
}
.request-card.is-processing .dynamic-request-fields {
  opacity: .48;
  pointer-events: none;
}
@keyframes call-progress-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .call-progress-spinner {
    animation: none;
    border-color: var(--acid);
  }
  .call-progress-track i {
    transition: none;
  }
}
.order-result {
  min-height: min(720px, calc(100dvh - 34px));
  padding: clamp(44px, 6vw, 72px);
  background: var(--paper);
  color: var(--ink);
}
.result-success-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-right: 64px;
}
.result-success-mark {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--ink);
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--ink);
  font: 700 22px/1 "DM Mono", monospace;
}
.result-success-head h2 {
  font-size: clamp(34px, 4vw, 50px);
}
.result-success-head > div > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.order-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 30px 0 0;
  border: 1px solid var(--ink);
  background: white;
}
.order-grid div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--ink);
}
.order-grid div:last-child {
  border: 0;
}
.order-grid dt {
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
}
.order-grid dd {
  margin: 9px 0 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.result-reference {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 13px 0;
  color: var(--muted);
  font: 400 9px/1.6 "DM Mono", monospace;
}
.result-reference code,
.result-reference time {
  margin-left: 7px;
  color: var(--ink);
  font: inherit;
}
.service-result {
  max-height: 520px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.response-view {
  border: 1px solid var(--ink);
  background: white;
}
.response-view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  background: var(--ink);
  color: white;
}
.response-view-head span {
  color: #9da69f;
  font: 500 8px "DM Mono", monospace;
  letter-spacing: .13em;
}
.response-view-head h3 {
  margin: 7px 0 0;
  color: white;
  font-size: 20px;
  letter-spacing: -.035em;
}
.response-view-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.response-view-badges b,
.response-view-badges em {
  padding: 7px 9px;
  font: 500 8px/1 "DM Mono", monospace;
  font-style: normal;
  white-space: nowrap;
}
.response-view-badges b {
  background: var(--acid);
  color: var(--ink);
}
.response-view-badges em {
  border: 1px solid #4c554e;
  color: #d7ddd8;
}
.response-body {
  padding: 20px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.75;
}
.rendered-text {
  margin: 0;
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.8;
}
.rendered-key-values {
  margin: 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.rendered-key-values div {
  display: grid;
  grid-template-columns: minmax(120px, 34%) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  min-width: 0;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.rendered-key-values div:last-child {
  border-bottom: 0;
}
.rendered-key-values dt {
  color: var(--muted);
  font: 500 11px/1.6 "DM Mono", monospace;
}
.rendered-key-values dd {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  text-align: right;
  word-break: break-word;
}
.rendered-key-values .json-value {
  font: 400 12px/1.7 "DM Mono", monospace;
  text-align: left;
  white-space: pre-wrap;
}
.rendered-key-values a,
.rendered-table-wrap a {
  color: var(--blue);
}
.rendered-result-list {
  display: grid;
  gap: 14px;
}
.rendered-result-summary,
.rendered-result-group {
  border: 1px solid var(--ink);
  background: white;
}
.rendered-result-summary {
  margin-bottom: 18px;
}
.rendered-result-summary > header,
.rendered-result-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  background: var(--ink);
  color: white;
}
.rendered-result-summary > header span,
.rendered-result-group > header span {
  color: #9da69f;
  font: 500 9px "DM Mono", monospace;
  letter-spacing: .13em;
}
.rendered-result-summary > header strong,
.rendered-result-group > header strong {
  color: var(--acid);
  font: 600 12px "DM Mono", monospace;
}
.rendered-result-summary .rendered-key-values,
.rendered-result-group .rendered-key-values {
  border: 0;
}
.rendered-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.rendered-table-wrap {
  overflow-x: auto;
}
.rendered-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
}
.rendered-table-wrap th,
.rendered-table-wrap td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.rendered-table-wrap th {
  background: var(--paper);
  color: var(--muted);
  font-size: 9px;
}
.rendered-json {
  max-height: 380px;
  margin: 0;
  overflow: auto;
  color: var(--ink);
  font: 400 11px/1.7 "DM Mono", monospace;
  white-space: pre-wrap;
}
.response-raw {
  border-top: 1px solid #3c423e;
  background: var(--ink);
  color: white;
}
.response-raw summary {
  padding: 13px 20px;
  color: #b9c1ba;
  cursor: pointer;
  font: 500 9px "DM Mono", monospace;
}
.response-raw summary:hover {
  color: var(--acid);
}
.response-raw pre {
  max-height: 330px;
  margin: 0;
  padding: 0 20px 20px;
  overflow: auto;
  color: #dfffa0;
  font: 400 10px/1.7 "DM Mono", monospace;
  white-space: pre-wrap;
}
.account-modal {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--acid), 0 28px 90px rgba(0, 0, 0, .35);
}
.account-modal.has-account {
  width: min(1080px, calc(100vw - 32px));
}
.account-modal::backdrop {
  background: rgba(10, 14, 11, .72);
  backdrop-filter: blur(5px);
}
.account-panel {
  max-height: calc(100dvh - 34px);
  padding: 26px;
  overflow: auto;
}
.account-head,
.account-section-head,
.account-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.account-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.account-head h2 {
  margin: 8px 0 0;
  font-size: 34px;
  letter-spacing: -.05em;
}
.account-head button,
.account-identity button,
.account-section-head button,
.account-pagination button,
.account-result-button {
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 9px/1 "DM Mono", monospace;
}
.account-head button:hover,
.account-identity button:hover,
.account-section-head button:hover,
.account-pagination button:hover:not(:disabled),
.account-result-button:hover {
  background: var(--acid);
}
.account-login {
  max-width: 520px;
  margin: 34px auto 20px;
  padding: 28px;
  border: 1px solid var(--line);
  background: white;
  text-align: center;
}
.account-login strong {
  font-size: 24px;
  letter-spacing: -.035em;
}
.account-login p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.account-login .primary-button {
  justify-content: space-between;
  max-width: 320px;
  margin: 24px auto 0;
}
.account-status {
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid #9db45e;
  background: #eef8d0;
  font-size: 11px;
}
.account-status.error {
  border-color: #e4a7a1;
  background: #fff0ed;
  color: var(--danger);
}
.account-center {
  padding-top: 24px;
}
.account-identity {
  padding: 16px;
  border: 1px solid var(--line);
  background: white;
}
.account-identity span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.account-identity code {
  font: 500 11px "DM Mono", monospace;
  overflow-wrap: anywhere;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.account-stats article {
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
}
.account-stats span {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.account-stats strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
  letter-spacing: -.045em;
}
.account-stats .spent {
  background: var(--ink);
  color: white;
}
.account-stats .spent span {
  color: #aab1ab;
}
.account-stats .spent strong {
  color: var(--acid);
  font-size: 17px;
}
.account-stats .spent b {
  font-size: 28px;
}
.account-orders,
.account-funds {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: white;
}
.account-channels {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: white;
}
.account-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #efede6;
}
.account-channel-card {
  min-width: 0;
  border: 1px solid var(--ink);
  background: white;
  box-shadow: 4px 4px 0 var(--acid);
}
.account-channel-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  background: var(--ink);
  color: white;
}
.account-channel-card header span {
  color: #909a92;
  font: 500 8px "DM Mono", monospace;
}
.account-channel-card h3 {
  margin: 6px 0 0;
  color: white;
  font-size: 18px;
  letter-spacing: -.035em;
}
.account-channel-card header > strong {
  color: var(--acid);
  font-size: 30px;
  line-height: .9;
  text-align: right;
}
.account-channel-card header > strong small {
  display: block;
  margin-top: 6px;
  color: #aeb6af;
  font: 500 8px "DM Mono", monospace;
  white-space: nowrap;
}
.account-channel-balance {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.account-channel-balance span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.account-channel-balance b {
  font-size: 20px;
  letter-spacing: -.03em;
}
.account-channel-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}
.account-channel-card dl div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.account-channel-card dl div:nth-child(2n) {
  border-right: 0;
}
.account-channel-card dt {
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
}
.account-channel-card dd {
  margin: 6px 0 0;
  overflow: hidden;
  font: 600 10px "DM Mono", monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-channel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.account-channel-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}
.account-channel-actions button:last-child {
  border-right: 0;
  color: var(--ink);
}
.account-channel-actions button:hover:not(:disabled) {
  background: var(--acid);
  color: var(--ink);
}
.account-channel-actions button:disabled {
  cursor: not-allowed;
  color: var(--muted);
  opacity: .65;
}
.account-refund-note {
  margin: 0;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff7d5;
  color: #735b26;
  font-size: 9px;
  line-height: 1.55;
}
.account-channel-actions .account-refund-cancel {
  border-color: #c75648;
  background: #fff5f2;
  color: #9a2f25;
}
.account-result-overlay {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 14, 11, .72);
  backdrop-filter: blur(4px);
}
.account-result-dialog {
  width: min(860px, 100%);
  max-height: calc(100dvh - 90px);
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--acid);
}
.account-section-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.account-section-head strong,
.account-section-head span {
  display: block;
}
.account-section-head strong {
  font: 500 10px "DM Mono", monospace;
}
.account-section-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}
.account-table-wrap {
  overflow-x: auto;
}
.account-table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}
.account-table-wrap th,
.account-table-wrap td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}
.account-table-wrap th {
  color: var(--muted);
  font-size: 8px;
}
.account-table-wrap td {
  font-size: 10px;
}
.account-table-wrap td strong,
.account-table-wrap td small {
  display: block;
}
.account-table-wrap td small {
  max-width: 260px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font: 400 8px "DM Mono", monospace;
  text-overflow: ellipsis;
}
.account-table-wrap code {
  font: 400 9px "DM Mono", monospace;
}
.account-empty,
.account-result-empty {
  padding: 36px 28px;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}
.account-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 14px 16px;
}
.account-pagination span {
  color: var(--muted);
  font: 400 9px "DM Mono", monospace;
}
.account-pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.account-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.account-result-head h3 {
  margin: 7px 0 0;
  font-size: 28px;
  letter-spacing: -.045em;
}
.account-result-head > div > p:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 10px;
}
.account-result-head code {
  font: 400 9px "DM Mono", monospace;
}
.account-result-head button {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: 500 9px/1 "DM Mono", monospace;
}
.account-result-head button:hover {
  background: var(--acid);
}
.account-result-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-bottom: 1px solid var(--ink);
  background: white;
}
.account-result-meta div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}
.account-result-meta div:last-child {
  border-right: 0;
}
.account-result-meta dt {
  color: var(--muted);
  font: 500 8px "DM Mono", monospace;
}
.account-result-meta dd {
  margin: 7px 0 0;
  overflow: hidden;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
}
.account-result-meta b,
.account-result-meta time {
  display: block;
  font: inherit;
}
.account-result-meta time {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
}
#account-result-content {
  max-height: min(520px, calc(100dvh - 280px));
  padding: 18px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.result-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  background: white;
}
.result-loading .call-progress-spinner {
  border-color: var(--line);
  border-top-color: var(--blue);
}
.result-loading strong {
  font-size: 13px;
}
.result-loading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 26px 0 42px;
  color: var(--muted);
  font: 400 9px "DM Mono", monospace;
}
@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkout {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .account-channel-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .shell {
    width: min(100% - 28px, 1220px);
  }
  .topbar {
    height: 72px;
  }
  .topbar-actions {
    gap: 5px;
  }
  .account-button,
  .wallet-identity {
    padding: 9px;
  }
  .account-button span {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .wallet-identity code {
    max-width: 108px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hero {
    padding: 42px 0 48px;
  }
  .hero h1 {
    font-size: clamp(44px, 13vw, 62px);
  }
  .flow {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .flow i {
    display: none;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .service-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
  }
  .service-modal-panel {
    max-height: calc(100dvh - 18px);
  }
  .modal-close {
    top: 12px;
    right: 12px;
  }
  .checkout {
    padding: 64px 20px 28px;
  }
  .checkout h2 {
    font-size: 44px;
  }
  .request-card {
    box-shadow: 6px 6px 0 var(--acid);
  }
  .batch-topup {
    grid-template-columns: 1fr;
  }
  .batch-recharge-setting {
    grid-template-columns: 1fr;
    padding: 16px 0 0;
    border-top: 1px solid #4c574e;
    border-left: 0;
  }
  .order-result {
    min-height: calc(100dvh - 18px);
    padding: 52px 20px 28px;
  }
  .result-success-head {
    gap: 14px;
    padding-right: 42px;
  }
  .result-success-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }
  .order-grid {
    grid-template-columns: 1fr 1fr;
  }
  .order-grid div {
    border-bottom: 1px solid var(--ink);
  }
  .order-grid div:nth-child(2) {
    border-right: 0;
  }
  .response-view-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .response-view-badges {
    justify-content: flex-start;
  }
  .rendered-key-values div {
    grid-template-columns: minmax(96px, 38%) minmax(0, 1fr);
    gap: 12px;
    padding: 13px 12px;
  }
  .account-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    box-shadow: 6px 6px 0 var(--acid);
  }
  .account-panel {
    max-height: calc(100dvh - 18px);
    padding: 20px 14px;
  }
  .account-head {
    align-items: flex-start;
  }
  .account-head h2 {
    font-size: 28px;
  }
  .account-login {
    margin: 34px 0;
    padding: 24px 18px;
  }
  .account-identity {
    align-items: flex-start;
    flex-direction: column;
  }
  .account-stats {
    grid-template-columns: 1fr;
  }
  .account-result-overlay {
    padding: 8px;
  }
  .account-result-dialog {
    max-height: calc(100dvh - 34px);
    box-shadow: 6px 6px 0 var(--acid);
  }
  .account-result-head {
    padding: 18px 16px 14px;
  }
  .account-result-head h3 {
    font-size: 24px;
  }
  .account-result-meta {
    grid-template-columns: 1fr 1fr;
  }
  .account-result-meta div:nth-child(2) {
    border-right: 0;
  }
  .account-result-meta div:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
  #account-result-content {
    max-height: calc(100dvh - 300px);
    padding: 12px;
  }
  .account-pagination {
    align-items: stretch;
    flex-direction: column;
    text-align: center;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}
/*# sourceMappingURL=app.css.map */
