* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #101419;
  color: #f4f6f8;
}

a {
  color: #ffb347;
  text-decoration: none;
}

h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.15;
}

p {
  line-height: 1.55;
}

.page {
  max-width: 920px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
}

.brand a {
  color: #f4f6f8;
}

.brand span {
  color: #9cb2c4;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.nav a,
.nav button,
.button {
  border: 1px solid #ff9a2f;
  color: #ffb347;
  background: transparent;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
}

.button--solid {
  background: #ff9a2f;
  color: #171717;
  font-weight: 700;
}

.button--danger {
  border-color: #ee6a5f;
  color: #ff8b82;
}

.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #253244;
  color: #f4f6f8;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.hero {
  padding: 32px 0 26px;
}

.hero h1 {
  max-width: 760px;
}

.lead {
  max-width: 720px;
  font-size: 18px;
  color: #dfe7ef;
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffb347;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.card {
  background: #171d24;
  border: 1px solid #2c3642;
  border-radius: 8px;
  padding: 16px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.metric {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 0;
}

.muted {
  color: #9cb2c4;
}

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

th,
td {
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid #2c3642;
  vertical-align: top;
}

form {
  margin: 0;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #364353;
  background: #101419;
  color: #f4f6f8;
  padding: 10px 12px;
  margin-bottom: 12px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.device-actions .button {
  padding: 8px 10px;
}

.inline-form {
  display: inline;
}

.qr-panel {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.qr-image {
  width: 100%;
  max-width: 280px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.steps {
  padding-left: 20px;
}

.steps li {
  margin-bottom: 8px;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  background: #253244;
  padding: 4px 10px;
  font-size: 12px;
  color: #dfe7ef;
}

.pill[data-status="paid"] {
  background: #173b2f;
  color: #8ee3b0;
}

.pill[data-status="refunded"],
.pill[data-status="partial_refunded"] {
  background: #29384a;
  color: #aac9ee;
}

.pill[data-status="rejected"],
.pill[data-status="expired"] {
  background: #442129;
  color: #ff9fa8;
}

.payment-live-note {
  border-left: 3px solid #ff9a2f;
  padding-left: 10px;
}

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

.check-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  align-items: start;
}

.check-item p {
  margin: 4px 0 0;
}

.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: #ff8b82;
}

.check-dot--ok {
  background: #8ee3b0;
}

.check-dot--bad {
  background: #ff8b82;
}

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

.code {
  font-family: Consolas, monospace;
  word-break: break-all;
}

.footer-note {
  margin-top: 24px;
  font-size: 13px;
  color: #9cb2c4;
}

.plain-list {
  padding-left: 20px;
}

.plain-list li {
  margin-bottom: 8px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.payment-badges span {
  border: 1px solid #ff9a2f;
  border-radius: 8px;
  padding: 8px 10px;
  color: #f4f6f8;
  background: #1f2731;
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #2c3642;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

@media (max-width: 700px) {
  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid #2c3642;
    padding: 10px 0;
  }

  td {
    border-bottom: 0;
    padding: 6px 0;
  }

  .qr-panel {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 28px;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
