/* Demo-only UI overlay styles matching production dark terminal palette */

.demo-brand-pill {
  display: inline-flex;
  align-items: center;
  height: 17px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 3px;
  border: 1px solid rgba(201, 151, 43, 0.45);
  background: rgba(201, 151, 43, 0.14);
  color: #e5bd66;
  font: 700 9px/1 var(--font-mono, monospace);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.demo-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.demo-wallet-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  border: 1px solid #30343d;
  background: #1b1d22;
  color: #e2e5ec;
  font: 600 11px/1 var(--font-mono, monospace);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.demo-wallet-btn:hover {
  background: #23262e;
  border-color: #464c59;
}
.demo-wallet-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e5bd66;
  background: rgba(201, 151, 43, 0.16);
  border: 1px solid rgba(201, 151, 43, 0.35);
  padding: 1px 4px;
  border-radius: 2px;
}
.demo-wallet-pnl {
  font-size: 10.5px;
  font-weight: 600;
}
.demo-wallet-pnl.pos { color: #5ec289; }
.demo-wallet-pnl.neg { color: #df6c73; }
.demo-wallet-pnl.hidden { display: none; }

.demo-access-btn {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 4px;
  border: 1px solid #3a8662;
  background: #254a37;
  color: #e2f6e9;
  font: 600 11px/1 var(--font-sans, system-ui, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.demo-access-btn:hover {
  background: #315b45;
  border-color: #4ca379;
}

.demo-wallet-popover {
  position: fixed;
  top: 40px;
  right: 10px;
  width: 296px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #2e323c;
  background: #17181c;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.65);
  color: #d4d7df;
  font: 12px/1.4 var(--font-sans, system-ui, sans-serif);
  z-index: 9999;
}
.demo-wallet-popover.hidden { display: none; }

.demo-wp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #24272f;
}
.demo-wp-title {
  font-size: 12px;
  font-weight: 700;
  color: #eef0f6;
}
.demo-wp-close {
  border: 0;
  background: transparent;
  color: #7d828f;
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.demo-wp-close:hover { color: #e2e5ec; }

.demo-wp-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  margin-bottom: 10px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
}
.demo-wp-k { color: #848996; }
.demo-wp-v { color: #e6e9f0; text-align: right; font-weight: 600; }
.demo-wp-v.pos { color: #5ec289; }
.demo-wp-v.neg { color: #df6c73; }

.demo-wp-divider {
  height: 1px;
  background: #24272f;
  margin: 10px 0;
}

.demo-wp-section-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7c818e;
  margin-bottom: 6px;
  font-family: var(--font-mono, monospace);
}

.demo-wp-presets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}
.demo-wp-preset {
  height: 24px;
  border-radius: 3px;
  border: 1px solid #2c303a;
  background: #1e2026;
  color: #c8ccd6;
  font: 600 10.5px/1 var(--font-mono, monospace);
  cursor: pointer;
}
.demo-wp-preset:hover {
  background: #282c36;
  border-color: #4a5163;
  color: #fff;
}

.demo-wp-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.demo-wp-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid #2f333e;
  background: #111215;
  color: #eef0f6;
  font: 600 11.5px var(--font-mono, monospace);
  outline: none;
}
.demo-wp-input:focus { border-color: #c9972b; }

.demo-wp-apply {
  height: 28px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid rgba(201, 151, 43, 0.55);
  background: rgba(201, 151, 43, 0.22);
  color: #f3cf7a;
  font: 600 11px var(--font-sans, system-ui, sans-serif);
  cursor: pointer;
  white-space: nowrap;
}
.demo-wp-apply:hover {
  background: rgba(201, 151, 43, 0.34);
}

.demo-wp-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #9ba0ad;
  cursor: pointer;
  margin-bottom: 4px;
}
.demo-wp-check input { accent-color: #c9972b; margin: 0; }

.demo-wp-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-bottom: 8px;
}
.demo-wp-cta-primary,
.demo-wp-cta-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.demo-wp-cta-primary {
  border: 1px solid #3a8662;
  background: #254a37;
  color: #e2f6e9;
}
.demo-wp-cta-primary:hover { background: #315b45; }
.demo-wp-cta-sec {
  border: 1px solid #2f333e;
  background: #1e2026;
  color: #c8ccd6;
}
.demo-wp-cta-sec:hover {
  background: #282c36;
  color: #fff;
}

.demo-wp-note {
  font-size: 10px;
  line-height: 1.4;
  color: #6b707d;
}
