:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #09090b;
  --muted: #71717b;
  --divider: #e4e4e7;
  --accent: #f4f4f5;
  --accent-2: #675dff;
  --green: #10b981;
  --border: #e4e4e7;
  --primary: #675dff;
  --primary-foreground: #fafafa;
  --card: #ffffff;
  --card-foreground: #09090b;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--text);
  display: flex;
  justify-content: center;
  padding: 32px 18px 54px;
}

.layout {
  width: 100%;
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.summary {
  background: var(--card);
  color: var(--text);
  border-radius: 14px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.summary__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.crumb__icon { font-weight: 600; }

.brand {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.summary__product {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--muted);
}

.summary__price {
  font-size: 30px;
  margin: 0;
  font-weight: 800;
}

.summary__sub {
  margin: 4px 0 14px;
  color: #9ca3af;
  font-size: 14px;
}

.line-items, .totals {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: var(--accent);
}

.line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  color: var(--text);
  font-size: 14px;
}

.line.dim { color: #9ca3af; }

.line.total { font-weight: 700; font-size: 15px; }

.mono { font-family: "JetBrains Mono", "SFMono-Regular", Menlo, monospace; }

.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.panel {
  background: var(--card);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
}

.panel__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

select {
  appearance: none;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
}

.select-note { color: var(--muted); font-size: 12px; }

.qr-block {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  background: var(--card);
  text-align: center;
}

.qr-block canvas { background: white; padding: 10px; border-radius: 10px; }

.qr-note {
  margin: 10px 0;
  color: var(--muted);
  font-size: 13px;
}

.addr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 8px 0 12px;
  text-align: left;
}

.addr-row .mono { margin: 0; font-size: 13px; word-break: break-all; }

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  cursor: pointer;
}

.ghost-btn {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 600;
  cursor: pointer;
}

.progress {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress__track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
}

.progress__line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.progress__line::after {
  content: \"\";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress-width, 25%);
  background: linear-gradient(120deg, var(--primary) 0%, #a855f7 100%);
  transition: width 0.25s ease;
}

.p-node {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.p-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--card);
  transition: all 0.2s ease;
}

.p-label {
  font-size: 12px;
  color: var(--muted);
}

.p-node--active .p-dot {
  border-color: var(--primary);
  background: #ede9fe;
  box-shadow: 0 0 0 6px rgba(103, 93, 255, 0.15);
}

.p-node--active .p-label { color: var(--text); font-weight: 600; }

.p-node--done .p-dot {
  border-color: var(--green);
  background: #ecfdf3;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
}

.p-node--done .p-label { color: var(--green); font-weight: 600; }

.progress__note { margin: 0; color: var(--muted); font-size: 13px; }

.status {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
}

.status__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 6px rgba(251, 191, 36, 0.2);
}

.status__title { margin: 0 0 4px; font-weight: 700; }
.status__note { margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 960px) {
  body { padding: 24px 12px 42px; }
  .layout { grid-template-columns: 1fr; }
}

/* confirmations bar */
.confirmations__bar {
  height: 8px;
  background: var(--border);
  border-radius: 6px;
  overflow: hidden;
  width: 220px;
  margin-top: 4px;
  border: 1px solid var(--border);
}
.confirmations__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, #a855f7 100%);
  width: 0%;
  transition: width 0.3s ease;
}

