:root {
  --bg: #09121d;
  --bg-soft: rgba(14, 24, 37, 0.92);
  --panel: rgba(17, 26, 41, 0.92);
  --panel-border: rgba(84, 214, 255, 0.14);
  --text: #eaf6ff;
  --muted: #8ba5bf;
  --primary: #52f3ff;
  --primary-deep: #00b7d6;
  --danger: #ff6c9f;
  --success: #65f1b4;
  --warning: #ffca68;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(82, 243, 255, 0.12), transparent 34%),
    radial-gradient(circle at right center, rgba(255, 108, 159, 0.08), transparent 28%),
    linear-gradient(180deg, #0a111b 0%, #08111c 100%);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, sans-serif;
}

.wallpaper-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.stamp {
  position: absolute;
  border-radius: 999px;
  filter: blur(0);
  opacity: 0.22;
}

.stamp-a {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -70px;
  background: radial-gradient(circle, rgba(82, 243, 255, 0.18), transparent 68%);
}

.stamp-b {
  width: 420px;
  height: 420px;
  right: -160px;
  top: -90px;
  background: radial-gradient(circle, rgba(255, 108, 159, 0.12), transparent 70%);
}

.stamp-c {
  width: 240px;
  height: 240px;
  right: 24%;
  bottom: 16%;
  background: radial-gradient(circle, rgba(82, 243, 255, 0.08), transparent 72%);
}

.topbar,
.layout {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px 12px;
}

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

h1,
h2 {
  margin: 0;
  font-family: "Sora", system-ui, sans-serif;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.95;
}

h2 {
  font-size: 26px;
}

.subtitle {
  margin: 12px 0 0;
  max-width: 700px;
  color: var(--muted);
  line-height: 1.55;
}

.header-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.status-pill,
.ghost-btn,
.primary-btn,
.danger-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
}

.status-pill {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.ghost-btn,
.primary-btn,
.danger-btn {
  cursor: pointer;
  padding: 11px 16px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), #7bf7ff);
  color: #031119;
  font-weight: 700;
}

.danger-btn {
  background: rgba(255, 108, 159, 0.12);
  border-color: rgba(255, 108, 159, 0.22);
  color: #ffc5d8;
}

.ghost-btn:hover,
.primary-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
}

.layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr) 340px;
  gap: 18px;
  padding: 8px 24px 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.sidebar,
.meta-panel {
  padding: 18px;
  height: calc(100vh - 156px);
  position: sticky;
  top: 18px;
  overflow: auto;
}

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

.editor-panel {
  padding: 20px;
}

.sidebar-head,
.section-head,
.button-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.section-head,
.button-row {
  flex-wrap: wrap;
}

.inline-button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.mini-stat {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-stat span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.mini-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 28px;
}

.search-wrap,
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-wrap span,
label span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

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

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 11, 18, 0.72);
  color: var(--text);
}

.muted-field {
  opacity: 0.72;
}

textarea {
  resize: vertical;
}

.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.invoice-item {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 22px;
  padding: 14px;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.invoice-item.active {
  border-color: rgba(82, 243, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(82, 243, 255, 0.18);
}

.invoice-item-head,
.status-chip-row,
.runtime-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.invoice-item h3 {
  margin: 0;
  font-size: 18px;
}

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

.invoice-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.chip.open {
  background: rgba(101, 241, 180, 0.14);
  color: #b6ffe3;
}

.chip.paid {
  background: rgba(82, 243, 255, 0.16);
  color: #bcfbff;
}

.chip.refund {
  background: rgba(255, 108, 159, 0.16);
  color: #ffc1d6;
  border: 1px solid rgba(255, 108, 159, 0.24);
}

.chip.expired,
.chip.cancelled {
  background: rgba(255, 202, 104, 0.14);
  color: #ffe6a9;
}

.chip.source {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.chip.source-chain_sync {
  background: rgba(255, 202, 104, 0.16);
  color: #ffe3a2;
  border: 1px solid rgba(255, 202, 104, 0.22);
}

.chip.source-kbeam_app {
  background: rgba(82, 243, 255, 0.16);
  color: #bcfbff;
  border: 1px solid rgba(82, 243, 255, 0.2);
}

.source-row {
  justify-content: flex-start;
  margin-top: 10px;
}

.field-grid {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

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

.compact-grid {
  margin-bottom: 10px;
}

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

.import-hint-card {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(82, 243, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(82, 243, 255, 0.16);
}

.import-hint-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.import-hint-card p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.5;
}

.inline-status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
  padding: 14px 15px;
  border-radius: 18px;
  background: rgba(6, 11, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.inline-status-card span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.inline-status-card strong {
  font-size: 15px;
  line-height: 1.4;
}

.preview-card,
.runtime-card,
.invoice-preview-card {
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-card code {
  display: block;
  margin: 8px 0 10px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(6, 11, 18, 0.78);
  color: var(--primary);
  white-space: normal;
  overflow-wrap: anywhere;
}

.helper-copy,
.status-copy {
  color: var(--muted);
  line-height: 1.5;
}

.preview-source-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  margin-left: 6px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.preview-source-chip.source-chain_sync {
  background: rgba(255, 202, 104, 0.16);
  color: #ffe3a2;
}

.preview-source-chip.source-kbeam_app {
  background: rgba(82, 243, 255, 0.16);
  color: #bcfbff;
}

.slim-btn {
  padding: 8px 12px;
}

.runtime-card,
.invoice-preview-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-events-list {
  display: grid;
  gap: 12px;
}

.event-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.event-head,
.event-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.event-meta {
  font-size: 12px;
  color: var(--muted);
}

.event-item p {
  margin: 8px 0 0;
}

.runtime-row span {
  color: var(--muted);
}

.runtime-row strong {
  max-width: 180px;
  text-align: right;
  overflow-wrap: anywhere;
}

.invoice-preview-card .invoice-title {
  font-size: 24px;
  font-family: "Sora", system-ui, sans-serif;
  margin: 0;
}

.invoice-preview-card .invoice-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
}

.invoice-preview-card .invoice-meta {
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1260px) {
  .layout {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .meta-panel {
    grid-column: 1 / -1;
    height: auto;
    position: static;
  }
}

@media (max-width: 920px) {
  .topbar {
    padding: 22px 18px 10px;
  }

  .layout {
    grid-template-columns: 1fr;
    padding: 8px 14px 20px;
  }

  .sidebar {
    height: auto;
    position: static;
  }

  .field-grid.two,
  .field-grid.three,
  .preview-grid {
    grid-template-columns: 1fr;
  }
}

.content-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.layout {
  grid-template-columns: 380px minmax(0, 1.55fr) minmax(300px, 0.78fr);
  align-items: start;
}

.editor-panel,
.timeline-panel,
.meta-panel section,
.sidebar-head {
  min-width: 0;
}

.sidebar,
.meta-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar-actions {
  width: 100%;
  justify-content: stretch;
}

.sidebar-actions .ghost-btn,
.sidebar-actions .primary-btn {
  flex: 1 1 140px;
  justify-content: center;
}

.invoice-item {
  padding: 16px;
  overflow: hidden;
}

.invoice-item-head {
  align-items: flex-start;
}

.invoice-item-head h3 {
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.amount-row {
  margin-top: 10px;
  align-items: baseline;
}

.amount-strong {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
}

.invoice-item-merchant,
.invoice-item-meta,
.mono-copy,
.runtime-row strong,
.invoice-terminal-grid span,
.invoice-payment-meta,
.invoice-document-row a,
.timeline-item p,
.timeline-item span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.invoice-item-merchant {
  margin-top: 10px;
  font-weight: 600;
}

.invoice-item-meta {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.pricing-terminal-card,
.timeline-panel,
.document-actions-strip {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(82, 243, 255, 0.14);
  background:
    radial-gradient(circle at top right, rgba(82, 243, 255, 0.07), transparent 26%),
    rgba(255, 255, 255, 0.03);
}

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

.section-subhead h3,
.timeline-column-head h3 {
  margin: 0;
  font-size: 22px;
}

.quote-badge {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(6, 11, 18, 0.72);
  border: 1px solid rgba(82, 243, 255, 0.14);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-readout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

.pricing-readout {
  padding: 16px;
  border-radius: 20px;
  background: rgba(6, 11, 18, 0.78);
  border: 1px solid rgba(82, 243, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-readout input {
  margin-top: 4px;
}

.pricing-readout-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
}

.pricing-readout-value {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1;
  color: var(--primary);
}

.document-actions-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.document-actions-strip .inline-button-row {
  justify-content: flex-end;
}

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

.timeline-column {
  min-width: 0;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.timeline-item {
  position: relative;
  padding-left: 18px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(82, 243, 255, 0.08);
}

.timeline-item .event-head {
  align-items: flex-start;
}

.timeline-item .event-head strong {
  display: block;
  font-size: 16px;
  line-height: 1.2;
  max-width: 70%;
}

.timeline-item .amount-strong {
  text-align: right;
}

.pos-preview-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pos-preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.invoice-terminal-merchant {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.invoice-amount-stack {
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(82, 243, 255, 0.15), transparent 35%),
    rgba(6, 11, 18, 0.82);
  border: 1px solid rgba(82, 243, 255, 0.14);
}

.invoice-amount.fiat {
  font-family: "Sora", system-ui, sans-serif;
  font-size: clamp(32px, 3vw, 46px);
  line-height: 0.96;
  color: var(--primary);
  word-break: break-word;
}

.invoice-amount-sub {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 700;
}

.invoice-amount-secondary,
.invoice-rate-chip {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.invoice-rate-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

.invoice-terminal-grid div {
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.invoice-terminal-grid strong {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.invoice-terminal-grid span {
  display: block;
  line-height: 1.45;
}

.invoice-document-row {
  display: flex;
  justify-content: flex-start;
}

.invoice-document-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(82, 243, 255, 0.14);
  background: rgba(82, 243, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.invoice-payment-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.invoice-payment-meta strong {
  color: var(--text);
}

.meta-panel section + section {
  margin-top: 2px;
}

.runtime-card {
  gap: 14px;
}

.runtime-row {
  align-items: flex-start;
}

.runtime-row strong {
  max-width: 220px;
  line-height: 1.45;
}

.payment-wallet-card {
  border-color: rgba(82, 243, 255, 0.2);
  background:
    radial-gradient(circle at top right, rgba(82, 243, 255, 0.12), transparent 44%),
    rgba(255, 255, 255, 0.035);
}

.wallet-balance-hero {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(82, 243, 255, 0.18);
  background: rgba(0, 0, 0, 0.24);
}

.wallet-balance-hero span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.wallet-balance-hero strong {
  display: block;
  margin-top: 6px;
  color: var(--primary);
  font-family: "Sora", system-ui, sans-serif;
  font-size: 34px;
  line-height: 1.05;
}

.wallet-balance-hero small {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 7, 12, 0.66);
  backdrop-filter: blur(18px);
}

.modal-card {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(255, 108, 159, 0.12), transparent 34%),
    rgba(15, 24, 38, 0.98);
  border: 1px solid rgba(255, 108, 159, 0.24);
  box-shadow: var(--shadow);
}

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

.auth-login-card {
  width: min(780px, 100%);
}

.auth-login-grid {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.auth-qr-frame {
  display: grid;
  place-items: center;
  min-height: 260px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
}

.auth-qr-frame svg {
  display: block;
  width: min(100%, 292px);
  height: auto;
  image-rendering: pixelated;
  shape-rendering: crispEdges;
}

.auth-login-copy {
  display: grid;
  gap: 12px;
}

.auth-open-kbeam-btn {
  width: fit-content;
}

.auth-login-copy strong {
  font-size: 22px;
}

.auth-login-copy code {
  display: block;
  overflow-wrap: anywhere;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--primary);
}

.refund-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.refund-confirm-grid div,
.refund-address-confirm,
.refund-confirm-input-wrap {
  display: block;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.refund-confirm-grid span,
.refund-address-confirm span,
.refund-confirm-input-wrap span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.refund-confirm-grid strong {
  display: block;
  line-height: 1.35;
}

.refund-address-confirm {
  margin-bottom: 12px;
}

.refund-address-confirm code {
  display: block;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
  color: var(--primary);
  line-height: 1.45;
  word-break: break-all;
}

.refund-confirm-input-wrap input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 108, 159, 0.28);
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.payment-wait-card {
  border-color: rgba(82, 243, 255, 0.26);
  background:
    radial-gradient(circle at top right, rgba(82, 243, 255, 0.14), transparent 34%),
    rgba(15, 24, 38, 0.98);
}

.payment-wait-steps {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.payment-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
}

.payment-step span {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 2px solid rgba(139, 165, 191, 0.6);
}

.payment-step.active {
  color: var(--text);
  border-color: rgba(82, 243, 255, 0.2);
  background: rgba(82, 243, 255, 0.08);
}

.payment-step.active span {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 24px rgba(82, 243, 255, 0.36);
}

.payment-wait-status {
  padding: 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(82, 243, 255, 0.12);
}

.payment-wait-status strong {
  display: block;
  margin-bottom: 8px;
}

.modal-actions .danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.42;
  transform: none;
}

@media (max-width: 1500px) {
  .layout {
    grid-template-columns: 340px minmax(0, 1fr) 300px;
  }

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

@media (max-width: 1260px) {
  .timeline-grid,
  .invoice-terminal-grid,
  .pricing-readout-grid,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .document-actions-strip,
  .section-subhead {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 920px) {
  .pricing-terminal-card,
  .timeline-panel,
  .document-actions-strip {
    padding: 16px;
  }

  .invoice-amount.fiat {
    font-size: 30px;
  }

  .modal-head,
  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .refund-confirm-grid {
    grid-template-columns: 1fr;
  }

  .auth-login-grid {
    grid-template-columns: 1fr;
  }
}
