/* ════════════════════════════════════════════════════════════
   External pages — true-black POS terminal shell
   Shared: index, simulator, admin-moto
   ════════════════════════════════════════════════════════════ */

body.external-surface {
  --bg0: #163044;
  --bg1: #1c3a52;
  --bg2: #234864;
  --bg3: #2a5474;
  --gold: #d4af37;
  --gold-light: #f4e4bc;
  --gold-dark: #b8941f;
  --gold-glow: rgba(212, 175, 55, 0.28);
  --border: rgba(212, 175, 55, 0.55);
  --text: #e7eef8;
  --text2: #9eb0c6;
  --text3: #7d93ab;
  --radius-ui: 10px;
  --ghost-white: rgba(214, 232, 255, 0.72);
  --ghost-white-glow: rgba(43, 127, 255, 0.28);
  --pos-blue: #2b7fff;
  --pos-blue-deep: #1d4ed8;
  --pos-line: rgba(212, 175, 55, 0.55);
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  background: #163044;
  color: var(--text);
  padding: 0;
}

body.external-surface .bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.55;
}

body.external-surface .terminal,
body.external-surface .terminal-header,
body.external-surface .flow-panel,
body.external-surface .log-panel {
  background: #163044;
  border-color: var(--pos-line);
  border-radius: var(--radius-ui);
}

/* ── POS shell layout (index) ───────────────────────────── */
body.pos-shell {
  min-height: 100vh;
}

.pos-app.main-container {
  position: relative;
  z-index: 1;
  max-width: none;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: #163044;
}

.pos-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(240px, 1.4fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--pos-line);
  background: #163044;
  border-radius: 0;
}

.pos-brand h1,
.pos-topbar .header-logo h1 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  color: #f5f5f5;
  text-transform: uppercase;
}

.pos-brand .subtitle,
.pos-topbar .subtitle {
  color: var(--text3);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pos-topbar-center {
  text-align: center;
}

.pos-mode-title {
  font-family: 'Orbitron', 'IBM Plex Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #e8eef8;
}

.pos-mode-sub {
  margin-top: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text3);
  text-transform: uppercase;
}

.pos-topbar-status .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.35);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pos-host-clock {
  font-variant-numeric: tabular-nums;
  color: #b7f0c8;
  margin-left: 2px;
}

.pos-body {
  flex: 1;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 250px;
  min-height: 0;
  background: #163044;
}

.pos-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 14px;
  border-right: 1px solid var(--pos-line);
  background: #163044;
}

.pos-rail-label,
.pos-side-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--text3);
}

.pos-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pos-nav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  padding: 12px 12px 12px 14px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text2);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pos-nav-item:hover {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.pos-nav-item.is-active {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  border-left-color: var(--pos-blue);
  color: #fff;
}

.pos-nav-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.pos-nav-meta {
  font-size: 0.68rem;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.pos-nav-item.is-active .pos-nav-meta {
  color: #93c5fd;
}

.pos-rail-foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text3);
  letter-spacing: 0.04em;
}

.pos-main {
  min-width: 0;
  padding: 18px 22px 24px;
  background: #163044;
}

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

.pos-stage-copy h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #f7f8fa;
  letter-spacing: 0.02em;
}

.pos-stage-copy p {
  margin-top: 6px;
  max-width: 52ch;
  color: var(--text2);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pos-stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.pos-tag {
  padding: 6px 10px;
  border: 1px solid var(--pos-line);
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text2);
  background: #0c2036;
}

.pos-tag--accent {
  color: #dbeafe;
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.18);
}

.pos-form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.pos-step-chip {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #93c5fd;
}

body.pos-shell .trust-bar {
  margin-bottom: 12px;
  padding: 8px 10px;
  background: #0c2036;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
}

body.pos-shell .steps-bar {
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #0c2036;
  border: 1px solid var(--pos-line);
  border-radius: 8px;
}

body.pos-shell .terminal {
  padding: 18px 18px 20px;
  background: #163044;
  border: 1px solid var(--pos-line);
  box-shadow: none;
}

body.pos-shell .ops-shell {
  margin-top: 16px;
}

.pos-session {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 16px;
  border-left: 1px solid var(--pos-line);
  background: #163044;
}

.pos-session-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pos-session-grid {
  display: grid;
  gap: 10px;
  margin: 0;
}

.pos-session-grid > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.pos-session-grid dt {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--text3);
}

.pos-session-grid dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #e8eef8;
  text-align: right;
}

.pos-flow {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.pos-flow-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text3);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pos-flow-item.is-complete {
  color: #86efac;
}

.pos-flow-item.is-active {
  color: #fff;
  background: rgba(59, 130, 246, 0.16);
  border-color: rgba(59, 130, 246, 0.35);
}

.pos-flow-num {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid currentColor;
  font-size: 0.68rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pos-flow-item.is-active .pos-flow-num {
  background: var(--pos-blue);
  border-color: var(--pos-blue);
  color: #fff;
}

.pos-flow-text {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.3;
}

.inspect-dock {
  padding: 4px 4px 0;
  background: transparent;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
}

.inspect-summary {
  margin: 0 0 12px;
  color: #f4e4bc;
  font-size: 0.92rem;
}

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

.inspect-actions button,
.inspect-links button {
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: #10263a;
  color: #f7f1df;
  border-radius: 12px;
  min-height: 46px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.inspect-actions button:hover,
.inspect-links button:hover {
  background: rgba(212, 175, 55, 0.12);
}

.inspect-report {
  margin: 12px 0 0;
  padding: 12px;
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  background: #0e2033;
  color: #e7eef8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
}

.inspect-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
}

.inspect-links button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c5d4ea;
  font-weight: 600;
  border-radius: 0;
}

@media (max-width: 720px) {
  .inspect-actions { grid-template-columns: 1fr; }
}

.pos-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 22px;
  border-top: 1px solid var(--pos-line);
  background: #163044;
  color: var(--text3);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.pos-shell .logo-icon {
  color: #e8eef8;
  filter: none;
  animation: none;
  font-size: 28px;
}

body.pos-shell .terminal-header {
  box-shadow: none;
  border: 0;
  border-bottom: 1px solid var(--pos-line);
  border-radius: 0;
  padding: 14px 22px;
  background: #163044;
}

body.pos-shell .btn-back {
  background: #1a0f10 !important;
  border: 1px solid rgba(185, 28, 28, 0.45) !important;
  color: #fca5a5 !important;
}

body.pos-shell .btn-control {
  background: #111111;
  border: 1px solid rgba(212, 175, 55, 0.28);
  color: #f4e4bc;
}

body.pos-shell .checkout-card-section--active {
  background: #0c2036;
  border-color: var(--pos-line);
}

body.pos-shell .premium-card-shell,
body.pos-shell .approval-glass-panel,
body.pos-shell .protocol-payment-summary,
body.pos-shell .wallet-card--grid {
  background: #0c2036;
  border-color: var(--pos-line);
  box-shadow: none;
}

body.pos-shell .pcp-input,
body.pos-shell .premium-card-shell .stripe-name-input,
body.pos-shell input,
body.pos-shell select,
body.pos-shell textarea {
  background: #163044;
  border-color: rgba(255, 255, 255, 0.12);
}

@media (max-width: 1100px) {
  .pos-body {
    grid-template-columns: 1fr;
  }

  .pos-rail,
  .pos-session {
    border: 0;
    border-bottom: 1px solid var(--pos-line);
  }

  .pos-session {
    order: 3;
  }

  .pos-topbar {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .pos-topbar-center {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .pos-main {
    padding: 14px 12px 18px;
  }

  .pos-stage-head {
    flex-direction: column;
  }

  .pos-stage-tags {
    justify-content: flex-start;
  }

  .pos-footer {
    padding: 10px 12px;
  }
}

body.sim-body.external-surface {
  --sim-bg: #1a1a20;
  --sim-surface: #24242c;
  --sim-surface-2: #2c2c36;
  --sim-border: #3a3a46;
  --sim-accent: #3b82f6;
  --sim-text: #ececf2;
  --sim-muted: #8f8fa0;
  background: linear-gradient(165deg, #222228 0%, #18181c 100%);
}

/* ── Premium card shell (Stripe-style control panel) ─────── */
.premium-card-shell {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 18px 20px;
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 14px;
  background: linear-gradient(165deg, rgba(42, 42, 50, 0.95), rgba(26, 26, 32, 0.98));
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.premium-card-header {
  margin-bottom: 16px;
  text-align: center;
}

.premium-card-header h3 {
  font-family: 'Plus Jakarta Sans', 'Orbitron', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold, #3b82f6);
  margin-bottom: 6px;
}

.premium-card-pci {
  font-size: 0.72rem;
  color: var(--text3, #6b6b7a);
  line-height: 1.45;
}

.premium-security-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.premium-security-badges span {
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--gold, #3b82f6);
  background: rgba(59, 130, 246, 0.08);
  font-size: 0.68rem;
  font-weight: 800;
}

.premium-card-shell .stripe-card-layout--centered {
  gap: 18px;
}

.premium-card-shell .stripe-card-preview-wrap {
  width: 100%;
  max-width: 100%;
}

.premium-card-shell .stripe-card-preview {
  min-height: 188px;
}

.premium-card-shell .scp-aed {
  text-align: left;
  font-family: 'Geist Sans', monospace;
  letter-spacing: 0.04em;
  color: rgba(244, 228, 188, 0.55);
}

.premium-card-shell .scp-aed.is-live {
  color: #f4e4bc;
  font-size: 1.05rem;
  font-weight: 700;
}

.pcp-live-status {
  margin: 8px 0 0;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text3, #8ea4bb);
}

.pcp-live-status.is-ready {
  color: #f4e4bc;
}

.pcp-form-block {
  width: 100%;
}

.pcp-field {
  margin-bottom: 14px;
}

.pcp-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text2, #a8a8b8);
  margin-bottom: 6px;
}

.pcp-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.pcp-label-row .pcp-label {
  margin-bottom: 0;
}

.pcp-secure-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--gold, #3b82f6);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pcp-input,
.premium-card-shell .stripe-name-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(12, 12, 18, 0.92);
  border: 1px solid rgba(212, 175, 55, 0.32);
  border-radius: 8px;
  color: var(--text, #ececf2);
  font-size: 15px;
  font-family: 'Geist Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
  letter-spacing: 0.02em;
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.15s ease;
}

.pcp-input:hover,
.premium-card-shell .stripe-name-input:hover {
  border-color: rgba(59, 130, 246, 0.48);
  background: rgba(14, 14, 22, 0.96);
}

.pcp-input:focus,
.premium-card-shell .stripe-name-input:focus {
  outline: none;
  border-color: var(--gold, #3b82f6);
  background: rgba(16, 14, 10, 0.98);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.65),
    0 0 14px rgba(59, 130, 246, 0.38),
    0 0 28px rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}

.pcp-field.is-field-focused .pcp-label {
  color: var(--gold-light, #f4e4bc);
}

.pcp-field.is-field-focused .pcp-input-wrap--pan,
.pcp-field.is-field-focused .pcp-cvv-wrap {
  border-radius: 8px;
}

.pcp-input::placeholder {
  color: rgba(107, 114, 128, 0.85);
  letter-spacing: 0.04em;
}

.pcp-input-wrap--pan {
  position: relative;
  min-width: 0;
}

.pcp-pan-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}

.pcp-input--pan {
  padding-left: 36px;
  letter-spacing: 0.1em;
  direction: ltr;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.pcp-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pcp-row-2--single {
  grid-template-columns: 1fr;
}

.pcp-cvv-wrap {
  position: relative;
}

.pcp-cvv-wrap input {
  padding-right: 44px;
  direction: ltr;
  text-align: left;
  letter-spacing: 0.15em;
  border-radius: 8px;
}

.pcp-cvv-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 8px;
  background: rgba(18, 18, 24, 0.9);
  color: var(--gold-light, #f4e4bc);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.pcp-cvv-eye:hover {
  border-color: var(--gold, #3b82f6);
  background: rgba(59, 130, 246, 0.1);
}

.pcp-feedback {
  min-height: 1.1em;
  margin-top: 5px;
  font-size: 0.72rem;
  color: var(--text3);
}

.pcp-feedback.is-error {
  color: #f87171;
}

.pcp-feedback.is-ok {
  color: #34d399;
}

.pcp-brand-inline {
  display: flex;
  gap: 4px;
  height: 18px;
  margin-bottom: 6px;
}

.pcp-brand-inline svg {
  height: 100%;
  width: auto;
  opacity: 0.25;
}

.pcp-field--pan[data-brand='visa'] .pcp-logo-visa { opacity: 1; }
.pcp-field--pan[data-brand='mastercard'] .pcp-logo-mc { opacity: 1; }
.pcp-field--pan[data-brand='amex'] .pcp-logo-amex { opacity: 1; }

.stripe-card-preview[data-brand='visa'] {
  background: linear-gradient(135deg, #1a1f71 0%, #2a2a32 55%, #34343e 100%);
}

.stripe-card-preview[data-brand='mastercard'] {
  background: linear-gradient(135deg, #3d1515 0%, #2a2a32 50%, #34343e 100%);
}

.stripe-card-preview[data-brand='amex'] {
  background: linear-gradient(135deg, #004080 0%, #2a2a32 50%, #34343e 100%);
}

.checkout-card-section--active {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 16px 16px 20px;
}

.gateway-live-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 0.82rem;
  font-weight: 600;
  color: #86efac;
  letter-spacing: 0.02em;
}

.gateway-live-strip--offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.gateway-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: gateway-pulse 1.8s ease-in-out infinite;
}

.gateway-live-strip--offline .gateway-live-dot {
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes gateway-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.92); }
}

.checkout-card-section--active .panel-subtitle {
  text-align: center;
  margin-bottom: 14px;
}

@media (max-width: 520px) {
  .pcp-row-2 {
    grid-template-columns: 1fr;
  }
}

/* ── Wallets stack (Step 2) — single column, up to 5 slots ── */
.wallet-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.wallet-card--grid {
  margin-bottom: 0;
  width: 100%;
  border-radius: var(--radius-ui);
  border: 1px solid rgba(212, 175, 55, 0.22);
  background: rgba(18, 18, 24, 0.72);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.wallet-card--grid.is-active,
.wallet-card--grid:focus-within {
  border-color: var(--ghost-white);
  box-shadow: 0 0 0 1px var(--ghost-white-glow), 0 8px 24px rgba(0, 0, 0, 0.22);
}

.wallet-card--grid .wallet-inputs-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  grid-template-areas:
    "addr-label pct-label"
    "addr-input pct-input"
    "addr-msg   addr-msg";
  column-gap: 14px;
  row-gap: 6px;
  align-items: stretch;
}

.wallet-card--grid .wallet-addr-label { grid-area: addr-label; }
.wallet-card--grid .wallet-pct-label { grid-area: pct-label; text-align: center; }
.wallet-card--grid .wallet-addr-input-row { grid-area: addr-input; }
.wallet-card--grid .pct-input-wrap { grid-area: pct-input; }
.wallet-card--grid .wallet-validation-msg { grid-area: addr-msg; min-height: 1.1em; margin-top: 0; }

.wallet-card--grid .wallet-field-label {
  display: block;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text2, rgba(255, 255, 255, 0.72));
  line-height: 1.2;
}

.wallet-card--grid .wallet-addr-input-row,
.wallet-card--grid .pct-input-wrap {
  min-height: 48px;
  height: 48px;
  box-sizing: border-box;
  margin: 0;
}

.wallet-card--grid .pct-input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border-radius: var(--radius-ui);
  background: rgba(10, 10, 14, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.wallet-card--grid .pct-input-wrap:focus-within {
  border-color: var(--ghost-white);
  box-shadow:
    0 0 0 1px rgba(248, 248, 255, 0.28),
    0 0 18px var(--ghost-white-glow);
}

.wallet-card--grid .pct-input-wrap input[type="number"] {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-align: center;
  padding: 0;
  outline: none;
  -moz-appearance: textfield;
}

.wallet-card--grid .pct-input-wrap input[type="number"]::-webkit-outer-spin-button,
.wallet-card--grid .pct-input-wrap input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.wallet-card--grid .pct-symbol {
  color: var(--gold, #3b82f6);
  font-weight: 700;
  flex-shrink: 0;
}

.wallet-card--grid .wallet-pct-group {
  width: auto;
  flex-shrink: 0;
}

.wallet-inputs-row--stacked {
  flex-direction: column;
  gap: 10px;
}

.wallet-inputs-row--stacked .wallet-pct-group {
  width: 100%;
}

.wallet-addr-input-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  border-radius: var(--radius-ui);
  background: rgba(10, 10, 14, 0.65);
  border: 1px solid rgba(212, 175, 55, 0.2);
  padding: 4px 4px 4px 10px;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.wallet-addr-input-row:focus-within {
  border-color: var(--ghost-white);
  box-shadow:
    0 0 0 1px rgba(248, 248, 255, 0.28),
    0 0 18px var(--ghost-white-glow);
}

.wallet-crypto-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  color: #8b9cff;
}

.wallet-eth-icon {
  width: 20px;
  height: 20px;
}

.wallet-addr-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text);
  font-family: 'Inter', ui-monospace, monospace;
  font-size: 0.78rem;
  padding: 10px 6px;
  outline: none;
  box-shadow: none;
}

.wallet-copy-btn {
  flex-shrink: 0;
  align-self: center;
  padding: 8px 10px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--gold-light, #f4e4bc);
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.wallet-copy-btn:hover {
  background: rgba(59, 130, 246, 0.2);
  border-color: var(--gold, #3b82f6);
}

.wallet-copy-btn.is-copied {
  color: #86efac;
  border-color: rgba(134, 239, 172, 0.45);
  background: rgba(46, 204, 113, 0.12);
}

.pct-input-wrap {
  border-radius: var(--radius-ui);
}

.dist-summary,
.percentage-bar-container,
.checkout-card-section--active,
.premium-card-shell {
  border-radius: var(--radius-ui);
}

/* ── Review progress + summary (Step 3) ──────────────────── */
.review-progress {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-ui);
  border: 1px solid rgba(212, 175, 55, 0.24);
  background: rgba(12, 12, 18, 0.55);
}

.review-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.review-progress-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light, #f4e4bc);
  letter-spacing: 0.02em;
}

.review-progress-pct {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold, #3b82f6);
}

.review-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.review-progress-fill {
  width: 90%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark, #b8941f), var(--gold, #3b82f6), #fde68a);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.45);
  animation: review-progress-shimmer 2.4s ease-in-out infinite;
}

@keyframes review-progress-shimmer {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.review-progress-hint {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.45;
}

/* ── Turbo-Dash concurrent pipeline overlay ──────────────── */
.turbo-dash-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 14, 0.72);
  backdrop-filter: blur(6px);
}

.turbo-dash-overlay.hidden {
  display: none;
}

.turbo-dash-card {
  width: min(440px, 100%);
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: linear-gradient(165deg, rgba(22, 24, 34, 0.98), rgba(12, 14, 20, 0.98));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.turbo-dash-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light, #f4e4bc);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.turbo-dash-lanes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.72rem;
  color: var(--text2);
}

.turbo-dash-lanes span {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.turbo-dash-lanes span.active {
  border-color: rgba(59, 130, 246, 0.45);
  color: var(--gold-light, #f4e4bc);
  animation: turbo-lane-pulse 0.55s ease-in-out infinite alternate;
}

.turbo-dash-lanes span.done {
  border-color: rgba(125, 206, 160, 0.45);
  color: #7dcea0;
}

.turbo-dash-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.turbo-dash-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c9a227, #f0d878, #7dcea0);
  transition: width 0.12s linear;
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.turbo-dash-sparks {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  background-size: 40% 100%;
  animation: turbo-spark 0.55s linear infinite;
  opacity: 0.55;
  pointer-events: none;
}

.turbo-dash-meta {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--text2);
  letter-spacing: 0.02em;
}

.audit-matrix-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(125, 206, 160, 0.4);
  background: rgba(40, 167, 69, 0.1);
  text-align: left;
}

.audit-matrix-panel .audit-green {
  color: #7dcea0;
  font-weight: 700;
}

.one-touch-export-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

@keyframes turbo-spark {
  0% { background-position: -40% 0; }
  100% { background-position: 140% 0; }
}

@keyframes turbo-lane-pulse {
  from { filter: brightness(1); }
  to { filter: brightness(1.25); }
}

.summary-card {
  border-radius: var(--radius-ui);
  border: 1px solid rgba(212, 175, 55, 0.28);
  background: linear-gradient(160deg, rgba(34, 34, 42, 0.92), rgba(20, 20, 26, 0.96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  margin-bottom: 18px;
}

.summary-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(59, 130, 246, 0.04);
}

.summary-card-eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}

.summary-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.summary-card-badge {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(59, 130, 246, 0.1);
  color: var(--gold, #3b82f6);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.summary-card-body {
  padding: 4px 0 8px;
}

.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.summary-table-section td {
  padding: 12px 18px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold, #3b82f6);
}

.summary-table-label {
  width: 38%;
  padding: 9px 18px;
  color: var(--text2);
  vertical-align: top;
}

.summary-table-value {
  padding: 9px 18px 9px 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
  word-break: break-word;
}

.summary-table-addr {
  display: block;
  font-family: 'Inter', ui-monospace, monospace;
  font-size: 0.72rem;
  color: #c7d2fe;
  margin-bottom: 4px;
}

.summary-table-pct {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--gold-light);
  font-size: 0.68rem;
  font-weight: 700;
}

.summary-table-empty {
  padding: 12px 18px;
  color: var(--text3);
  font-style: italic;
}

.summary-table tbody tr:not(.summary-table-section):hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ── Approval glass panel (Step 3) ───────────────────────── */
.approval-glass-panel {
  position: relative;
  margin: 0 0 18px;
  padding: 18px;
  border-radius: var(--radius-ui);
  border: 1px solid rgba(212, 175, 55, 0.42);
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.14),
    rgba(255, 255, 255, 0.04) 45%,
    rgba(18, 18, 24, 0.55)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 36px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.approval-glass-shine {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 55%;
  height: 120%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  transform: rotate(12deg);
  pointer-events: none;
}

.approval-glass-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.approval-glass-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.16);
  border: 1px solid rgba(212, 175, 55, 0.35);
  font-size: 1rem;
}

.approval-glass-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light, #f4e4bc);
  margin-bottom: 4px;
}

.approval-glass-subtitle {
  margin: 0;
  font-size: 0.76rem;
  color: var(--text2);
  line-height: 1.45;
}

.approval-glass-input {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  border-radius: var(--radius-ui);
  border: 1px solid rgba(212, 175, 55, 0.45);
  background: rgba(8, 8, 12, 0.55);
  color: var(--gold-light, #f4e4bc);
  font-family: 'Orbitron', monospace;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.approval-glass-input::placeholder {
  color: rgba(244, 228, 188, 0.35);
  opacity: 1;
  letter-spacing: 0.35em;
}

.approval-glass-input:focus {
  outline: none;
  border-color: var(--gold, #3b82f6);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.55),
    0 0 22px rgba(59, 130, 246, 0.28);
}

.approval-glass-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.approval-glass-protocol {
  font-size: 0.72rem;
  color: var(--text2);
}

.approval-glass-protocol strong {
  color: var(--gold, #3b82f6);
}

.btn-confirm {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark)) !important;
  color: var(--bg0) !important;
  border-radius: var(--radius-ui) !important;
  font-family: 'Poppins', 'Inter', sans-serif !important;
  font-weight: 700 !important;
}

.stage4-actions--finale {
  display: flex;
  justify-content: center;
  width: 100%;
}

.btn-pos-reset {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 520px);
  padding: 18px 22px;
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(18, 22, 28, 0.95), rgba(28, 34, 42, 0.98)),
    linear-gradient(120deg, rgba(59, 130, 246, 0.18), rgba(46, 204, 113, 0.12));
  color: #f5f2e8;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-pos-reset:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.75);
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.2) inset,
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 28px rgba(59, 130, 246, 0.18);
}

.btn-pos-reset:active {
  transform: translateY(0);
}

.btn-pos-reset__glow {
  position: absolute;
  inset: -40% auto auto -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 68%);
  pointer-events: none;
}

.btn-pos-reset__icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #3b82f6, #8a7020);
  color: #12161c;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.28);
}

.btn-pos-reset__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.btn-pos-reset__copy strong {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #f7f3e7;
}

.btn-pos-reset__copy em {
  font-style: normal;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(232, 226, 210, 0.72);
}

.stage4-session-file .protocol-json {
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
}

@media (max-width: 520px) {
  .btn-pos-reset {
    gap: 12px;
    padding: 16px;
  }

  .btn-pos-reset__copy strong {
    font-size: 0.98rem;
  }
}

@media (max-width: 520px) {
  .wallet-card--grid .wallet-inputs-row {
    grid-template-columns: 1fr 96px;
    column-gap: 10px;
  }

  .wallet-card--grid .wallet-addr-input-row,
  .wallet-card--grid .pct-input-wrap {
    min-height: 44px;
    height: 44px;
  }
}

@media (max-width: 680px) {
  .summary-table-label,
  .summary-table-value {
    display: block;
    width: 100%;
    text-align: left;
    padding-left: 18px;
    padding-right: 18px;
  }

  .summary-table-value {
    padding-top: 0;
    padding-bottom: 12px;
  }
}

/* ── Stage 4 BAROON-style Online Sale Result ───────────────── */
.baroon-result-host {
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}

.baroon-result {
  width: min(560px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 14px;
  background: linear-gradient(180deg, #0e2740 0%, #0a1c30 100%);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.baroon-result__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.baroon-result__label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9aa3b2;
  font-weight: 600;
}

.baroon-result__step {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #64748b;
  font-weight: 600;
}

.baroon-result__body {
  padding: 28px 22px 22px;
  text-align: center;
}

.baroon-result__seal {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.baroon-result__seal svg {
  filter: drop-shadow(0 8px 18px rgba(34, 197, 94, 0.28));
}

.baroon-result__eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
}

.baroon-result__hero {
  margin: 0 0 12px;
  font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  font-size: clamp(1.55rem, 4.2vw, 2.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f8fafc;
  line-height: 1.15;
  text-wrap: balance;
}

.baroon-result__desc {
  margin: 0 auto 22px;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.baroon-result__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  text-align: left;
}

.baroon-result__grid dt {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #64748b;
  margin-bottom: 4px;
}

.baroon-result__grid dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f1f5f9;
  word-break: break-word;
}

.baroon-result__span2 {
  grid-column: 1 / -1;
}

.baroon-result__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem !important;
  letter-spacing: 0.02em;
}

.baroon-result__bridge {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: #93c5fd;
}

.baroon-result__actions {
  margin: 0 0 12px;
}

.baroon-result__actions--row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.baroon-result__primary,
.baroon-result__new {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 10px;
  background: #2563eb;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.baroon-result__primary:hover,
.baroon-result__new:hover {
  background: #1d4ed8;
}

.baroon-result__primary:disabled,
.baroon-result__new:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.baroon-result__ghost {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.baroon-result__ghost:hover {
  border-color: rgba(59, 130, 246, 0.55);
  color: #fff;
}

@media (max-width: 640px) {
  .baroon-result__grid {
    grid-template-columns: 1fr;
  }
}
