/**
 * Sovereign buy flow demo — fake Stripe checkout → mint → delivery
 */

.blb-buy-flow {
  min-height: 100vh;
  background: #0a0a09;
  color: #e8e6e1;
}

.blb-buy-flow-step {
  display: none;
  min-height: 100vh;
}

.blb-buy-flow-step.is-active {
  display: block;
}

.blb-buy-flow-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  font-family: var(--blb-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blb-text-mute);
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
}

.blb-buy-flow-hud strong { color: var(--blb-gold); }

.blb-buy-flow-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}

.blb-buy-flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(201, 169, 97, 0.2);
}

.blb-buy-flow-dot.is-done { background: #6fbf7a; }
.blb-buy-flow-dot.is-active { background: var(--blb-gold); box-shadow: 0 0 10px rgba(201, 169, 97, 0.5); }

/* ── Step 1: Stripe checkout mock ── */
.blb-stripe-mock {
  max-width: 420px;
  margin: 48px auto;
  padding: 0 20px 64px;
}

.blb-stripe-mock-card {
  background: #fff;
  color: #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.blb-stripe-mock-head {
  padding: 20px 24px;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.blb-stripe-mock-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, #1a1a1a, #3a3a3a);
}

.blb-stripe-mock-merchant {
  font-size: 14px;
  font-weight: 600;
}

.blb-stripe-mock-merchant span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #6b6b6b;
}

.blb-stripe-mock-body { padding: 24px; }

.blb-stripe-mock-product {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.blb-stripe-mock-product h2 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px;
}

.blb-stripe-mock-product p {
  margin: 0;
  font-size: 13px;
  color: #6b6b6b;
}

.blb-stripe-mock-price {
  font-size: 18px;
  font-weight: 700;
}

.blb-stripe-mock-field {
  margin-bottom: 14px;
}

.blb-stripe-mock-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b6b6b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blb-stripe-mock-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}

.blb-stripe-mock-field input:focus {
  outline: none;
  border-color: #635bff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

.blb-stripe-mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.blb-stripe-mock-pay {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: #635bff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.blb-stripe-mock-pay:hover { background: #5249e0; }
.blb-stripe-mock-pay:disabled { opacity: 0.6; cursor: wait; }

.blb-stripe-mock-foot {
  padding: 16px 24px;
  background: #f7f7f7;
  font-size: 11px;
  color: #8a8a8a;
  text-align: center;
}

.blb-stripe-mock-foot a { color: #635bff; text-decoration: none; }

.blb-buy-flow-note {
  text-align: center;
  margin-top: 20px;
  font-size: 11px;
  color: var(--blb-text-mute);
  font-family: var(--blb-font-mono, monospace);
}

/* ── Step 2: Processing split ── */
.blb-buy-processing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.blb-buy-processing h1 {
  font-family: var(--blb-font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 8px;
}

.blb-buy-processing > p {
  color: var(--blb-text-dim);
  margin-bottom: 28px;
}

.blb-buy-processing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 800px) {
  .blb-buy-processing-grid { grid-template-columns: 1fr; }
}

.blb-buy-term {
  border: 1px solid rgba(201, 169, 97, 0.2);
  background: rgba(8, 8, 7, 0.85);
  overflow: hidden;
}

.blb-buy-term-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(201, 169, 97, 0.12);
  font-family: var(--blb-font-mono, monospace);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--blb-text-mute);
}

.blb-buy-term-bar .live {
  color: #6fbf7a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.blb-buy-term-bar .live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6fbf7a;
  animation: blb-buy-pulse 1.2s ease-in-out infinite;
}

@keyframes blb-buy-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.blb-buy-term-log {
  padding: 16px;
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  font-family: var(--blb-font-mono, monospace);
  font-size: 11px;
  line-height: 1.75;
}

.blb-buy-term-log .line {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
}

.blb-buy-term-log .line.is-in {
  opacity: 1;
  transform: none;
}

.blb-buy-term-log .stripe { color: #8b9cff; }
.blb-buy-term-log .ok { color: #6fbf7a; }
.blb-buy-term-log .gold { color: var(--blb-gold); }
.blb-buy-term-log .dim { color: var(--blb-text-mute); }
.blb-buy-term-log .json { color: #c9d1d9; white-space: pre-wrap; margin-top: 6px; padding: 10px; background: rgba(0,0,0,0.35); border-left: 2px solid var(--blb-gold); }

.blb-buy-populate {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid rgba(201, 169, 97, 0.25);
  background: rgba(249, 226, 125, 0.04);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s, transform 0.6s;
}

.blb-buy-populate.is-ready {
  opacity: 1;
  transform: none;
}

.blb-buy-populate h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blb-gold);
  margin-bottom: 12px;
}

.blb-buy-populate dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px 16px;
  margin: 0;
  font-family: var(--blb-font-mono, monospace);
  font-size: 11px;
}

.blb-buy-populate dt { color: var(--blb-text-mute); }
.blb-buy-populate dd { margin: 0; color: #e8e6e1; word-break: break-all; }

.blb-buy-redirect {
  margin-top: 24px;
  text-align: center;
  font-family: var(--blb-font-mono, monospace);
  font-size: 12px;
  color: #6fbf7a;
}

/* Install overlay after download click */
.blb-del-install-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(5, 5, 4, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
}

.blb-del-install-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.blb-del-install-overlay-inner {
  width: min(640px, 100%);
  border: 1px solid rgba(201, 169, 97, 0.3);
  background: rgba(8, 8, 7, 0.95);
  padding: 28px;
}

.blb-del-install-overlay-inner h2 {
  font-family: var(--blb-font-display);
  font-size: 24px;
  margin-bottom: 6px;
}

.blb-del-install-overlay-inner > p {
  font-size: 13px;
  color: var(--blb-text-dim);
  margin-bottom: 20px;
}

.blb-del-local-dl-bar {
  height: 4px;
  background: rgba(201, 169, 97, 0.12);
  margin-bottom: 16px;
  overflow: hidden;
}

.blb-del-local-dl-bar div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blb-gold-dim), var(--blb-gold));
  transition: width 0.1s linear;
}

.blb-del-local-meta {
  font-family: var(--blb-font-mono, monospace);
  font-size: 11px;
  color: var(--blb-text-mute);
  margin-bottom: 16px;
}

.blb-del-local-log {
  font-family: var(--blb-font-mono, monospace);
  font-size: 11px;
  line-height: 1.8;
  min-height: 180px;
  max-height: 240px;
  overflow-y: auto;
}

.blb-del-local-log .cmd { color: #6fbf7a; }
.blb-del-local-log .dim { color: var(--blb-text-mute); }
.blb-del-local-log .ok { color: var(--blb-gold); }

.blb-del-install-overlay-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
