:root {
  --bg: #07140f;
  --panel: rgba(14, 42, 32, 0.88);
  --line: rgba(212, 180, 90, 0.28);
  --gold: #d4b45a;
  --cream: #f3ead2;
  --muted: #b7c4bc;
  --tg: #0e1621;
  --bubble: #182533;
  --ok: #7dcea0;
  --wait: #e7b56a;
  --bad: #e07a7a;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--cream);
  background: radial-gradient(circle at top, #143528, var(--bg) 55%);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, transparent 40%, rgba(212, 180, 90, 0.18) 41%, transparent 42%),
    linear-gradient(-30deg, transparent 40%, rgba(212, 180, 90, 0.12) 41%, transparent 42%);
  background-size: 42px 72px;
}

.top, .layout { position: relative; z-index: 1; }
.top {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 8px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.brand { display: flex; gap: 14px; align-items: center; }
.bismillah {
  font-family: Amiri, serif;
  color: var(--gold);
  margin: 0 0 4px;
  font-size: 18px;
}
h1 { margin: 0; font-size: 28px; letter-spacing: 0.01em; }
.subtitle, .phone-label { color: var(--muted); margin: 4px 0 0; }
.top-meta {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px 48px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.panel, .phone {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}
.panel { padding: 24px; }
.panel h2 { font-size: 18px; margin: 22px 0 12px; }
.panel h2:first-child { margin-top: 0; }

.steps { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checklist li {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex: none;
}
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.check-title { margin: 0; font-weight: 600; }
.check-hint { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.webhook-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.18);
}
.webhook-box p { margin: 10px 0 4px; color: var(--muted); font-size: 13px; }
.webhook-box p:first-child { margin-top: 0; }
code {
  display: block;
  overflow-x: auto;
  color: var(--gold);
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.stat {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 14px;
  padding: 10px;
}
.stat b { display: block; font-size: 20px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 12px; }

.orders { display: grid; gap: 8px; color: var(--muted); }
.order {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
  font-size: 13px;
}

.phone-wrap { position: sticky; top: 16px; }
.phone {
  width: min(100%, 390px);
  margin: 12px auto 0;
  background: var(--tg);
  overflow: hidden;
  min-height: 680px;
  display: flex;
  flex-direction: column;
}
.phone-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: #17212b;
  border-bottom: 1px solid #233040;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #1b5c45; color: var(--gold); font-weight: 700;
}
.phone-bar span { display: block; color: #86a399; font-size: 12px; }
.chat {
  padding: 16px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.bubble {
  max-width: 92%;
  background: var(--bubble);
  border-radius: 16px 16px 16px 4px;
  padding: 10px 12px;
  white-space: pre-wrap;
  line-height: 1.45;
  font-size: 14px;
}
.actions { display: grid; gap: 6px; }
.actions button, .pay-card button {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #2b5278;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.actions button.secondary { background: #1e3a2f; color: var(--gold); }
.actions button:disabled { opacity: 0.55; cursor: default; }

.pay-body { display: grid; place-items: center; padding: 32px 16px; }
.pay-card {
  width: min(460px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
}
.pay-card h1 { margin-bottom: 8px; }
.lead, .fine { color: var(--muted); }
.pay-card dl { display: grid; gap: 8px; }
.pay-card dl div { display: flex; justify-content: space-between; gap: 12px; }
.pay-card button { width: 100%; margin-top: 12px; background: #1b5c45; color: var(--gold); }

@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; }
  .phone-wrap { position: static; }
  .stats { grid-template-columns: 1fr 1fr; }
  .top { flex-direction: column; align-items: flex-start; }
}
