/* Demo-only overlays and chrome (reuses mainView.css for app shell) */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #125E06;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 12px;
}

.demo-intro-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100010;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  box-sizing: border-box;
  overflow-y: auto;
}

.demo-intro-overlay.hidden {
  display: none !important;
}

.demo-intro-card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  padding: 1.25rem 1.35rem 1.35rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  margin: auto;
}

.demo-intro-card h2 {
  margin: 0 0 0.5rem;
  color: #125E06;
  font-size: 1.35rem;
  text-align: center;
}

.demo-intro-card .demo-lead {
  text-align: center;
  color: #444;
  font-size: 0.95rem;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.demo-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.demo-steps li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #222;
  line-height: 1.35;
}

.demo-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #125E06;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-note {
  background: #E9FFEE;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
  color: #125E06;
  margin: 0 0 1rem;
  line-height: 1.4;
}

.demo-intro-card .btn-start-demo {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: 10px;
  background: #125E06;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-intro-card .btn-start-demo:hover {
  background: #0d4504;
}

.demo-scenario-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #5a6a7d;
  margin: 0 0 8px;
  text-align: center;
}

.demo-scenario-grid {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.demo-scenario-btn {
  text-align: left;
  border: 1px solid #d1d8e3;
  background: #f8fafc;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.demo-scenario-btn:hover {
  border-color: #125E06;
  background: #E9FFEE;
}

.demo-scenario-btn strong {
  display: block;
  color: #125E06;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.demo-scenario-btn span {
  display: block;
  color: #555;
  font-size: 0.8rem;
  line-height: 1.3;
}

.btn-skip-tips {
  width: 100%;
  margin-top: 8px;
  padding: 0.65rem;
  border: none;
  background: transparent;
  color: #5a6a7d;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* Guided tips */
.demo-tip-layer {
  position: fixed;
  inset: 0;
  z-index: 100020;
  pointer-events: none;
}

.demo-tip-layer.hidden {
  display: none !important;
}

.demo-tip-backdrop {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.demo-tip-spotlight {
  position: absolute;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  outline: 3px solid #39B053;
  pointer-events: none;
  transition: top 0.2s ease, left 0.2s ease, width 0.2s ease, height 0.2s ease;
  z-index: 1;
}

.demo-tip-card {
  position: absolute;
  z-index: 2;
  width: min(320px, calc(100vw - 32px));
  background: #fff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.demo-tip-step {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #125E06;
}

.demo-tip-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #111;
}

.demo-tip-card p#demoTipBody {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

.demo-tip-actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.demo-tip-skip {
  border: none;
  background: transparent;
  color: #666;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.demo-tip-next {
  border: none;
  background: #125E06;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
}

.demo-tip-next:hover {
  background: #0d4504;
}

/* Marketplace panel (inline, no new tab) */
.demo-market-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 60;
  padding: 16px;
  overflow-y: auto;
  box-sizing: border-box;
}

.demo-market-overlay.open {
  display: block;
}

.demo-market-panel {
  background: #f7f7f7;
  max-width: 520px;
  margin: 24px auto;
  border-radius: 12px;
  padding: 16px;
  min-height: 40vh;
}

.demo-market-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.demo-market-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.15rem;
  text-align: center;
  color: #125E06;
}

.demo-market-close {
  border: none;
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
}

.demo-book-card {
  width: 100%;
  margin: 16px 0;
  background-color: #B4D1BA;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-book-card .field {
  padding: 12px 16px;
  background: #fff;
  color: #000;
  border-radius: 12px;
  margin: 0;
}

.demo-book-card .row {
  display: flex;
  gap: 12px;
}

.demo-book-card .row .field {
  flex: 1;
}

.demo-book-card .avail-title {
  text-align: center;
  color: #125E06;
  font-weight: 700;
  margin: 4px 0 0;
}

.demo-book-card .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

.demo-confirm-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 100030;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.demo-confirm-overlay.open {
  display: flex;
}

.demo-confirm-card {
  background: #125E06;
  color: #fff;
  width: 100%;
  max-width: 360px;
  padding: 20px;
  border-radius: 12px;
}

.demo-confirm-card h3 {
  margin-top: 0;
}

.demo-confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.demo-confirm-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.demo-confirm-actions .cancel {
  background: #fff;
  color: #000;
}

.demo-confirm-actions .ok {
  background: #000;
  color: #fff;
}

#account .profile-button--outline {
  background: #fff;
  color: #125E06;
  border: 1px solid #125E06;
}

.demo-empty {
  text-align: center;
  color: #000;
  padding: 24px 12px;
}