/* Demo UI â€” mockups legÃ­veis (Controle / ProjeÃ§Ã£o / Stage / Remote) */
.demo-shell {
  --demo-bg: #0c0c10;
  --demo-panel: #16161e;
  --demo-line: rgba(255, 255, 255, 0.1);
  --demo-gold: #e0d4a0;
  --demo-muted: rgba(246, 244, 241, 0.78);
  --demo-coral: #d4af37;
  --demo-text: #f6f4f1;
  --demo-mirror-hue: 260;
  border-radius: 1.25rem;
  border: 1px solid var(--demo-line);
  background: var(--demo-bg);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--demo-text);
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.demo-tab {
  appearance: none;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted, rgba(246, 244, 241, 0.75));
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.demo-tab:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.45);
}

.demo-tab.is-active {
  background: linear-gradient(135deg, #f0d78a, #d4af37 42%, #b8922a);
  border-color: transparent;
  color: #1a1408;
}

.demo-panel {
  display: none;
}

.demo-panel.is-active {
  display: block;
}

.demo-caption {
  margin: 1.1rem 0 0;
  color: var(--muted, rgba(246, 244, 241, 0.75));
  font-size: 1rem;
  line-height: 1.55;
  max-width: 46rem;
}

.demo-caption strong {
  color: var(--demo-gold);
}

/* Dual: Controle em cima, ProjeÃ§Ã£o embaixo (legÃ­vel em qualquer largura) */
.demo-dual {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  background: #08080c;
}

/* Controle: sidebar + ordem + prÃ©via (3 colunas) */
.demo-control {
  display: grid;
  grid-template-columns: 4.5rem minmax(11rem, 15rem) minmax(0, 1fr);
  min-height: 340px;
  border: 1px solid var(--demo-line);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--demo-bg);
}

.demo-side {
  background: #0a0a0e;
  border-right: 1px solid var(--demo-line);
  padding: 0.65rem 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
}

.demo-side span {
  width: 100%;
  max-width: 3.4rem;
  min-height: 2.55rem;
  border-radius: 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--demo-muted);
  border: 1px solid transparent;
  padding: 0.2rem;
  text-align: center;
  line-height: 1.15;
}

.demo-side span.is-on {
  background: rgba(255, 92, 92, 0.16);
  color: var(--demo-gold);
  border-color: rgba(212, 198, 141, 0.35);
}

.demo-order {
  background: var(--demo-panel);
  border-right: 1px solid var(--demo-line);
  padding: 0.85rem 0.75rem;
  overflow: auto;
  min-width: 0;
}

.demo-order h4 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--demo-gold);
  font-weight: 700;
}

.demo-order-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-radius: 0.5rem;
  margin-bottom: 0.35rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--demo-muted);
  cursor: pointer;
  font: inherit;
}

.demo-order-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: inherit;
  line-height: 1.3;
  word-break: break-word;
}

.demo-order-item small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  opacity: 0.75;
}

.demo-order-item.is-active {
  background: rgba(255, 92, 92, 0.14);
  border-color: rgba(255, 140, 110, 0.4);
  color: #fff;
}

.demo-order-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.demo-center {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #101016;
}

/* Fundo animado espelhado â€” prÃ©via + projeÃ§Ã£o sincronizadas */
@keyframes demo-mirror-flow {
  0% { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50% { background-position: 100% 50%; filter: hue-rotate(18deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

@keyframes demo-mirror-shimmer {
  0%, 100% { opacity: 0.55; transform: scale(1) translate(0, 0); }
  50% { opacity: 0.85; transform: scale(1.08) translate(-2%, 1%); }
}

.demo-preview,
.demo-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.demo-preview::before,
.demo-screen::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  background: linear-gradient(
    125deg,
    hsl(var(--demo-mirror-hue, 260) 62% 22%) 0%,
    hsl(calc(var(--demo-mirror-hue, 260) + 48) 70% 38%) 35%,
    hsl(calc(var(--demo-mirror-hue, 260) + 92) 55% 28%) 65%,
    hsl(calc(var(--demo-mirror-hue, 260) + 18) 68% 32%) 100%
  );
  background-size: 220% 220%;
  animation: demo-mirror-flow 14s ease-in-out infinite;
  pointer-events: none;
}

.demo-preview::after,
.demo-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 30% 20%, rgba(255, 180, 120, 0.22), transparent 55%),
    radial-gradient(ellipse at 75% 80%, rgba(120, 90, 220, 0.28), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.55) 100%);
  animation: demo-mirror-shimmer 10s ease-in-out infinite;
  pointer-events: none;
}

.demo-preview > *,
.demo-screen > * {
  position: relative;
  z-index: 2;
}

.demo-preview {
  flex: 1;
  margin: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  min-height: 180px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-preview .on-air {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff9a7a;
  z-index: 3;
}

.demo-mirror-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(224, 212, 160, 0.45);
  backdrop-filter: blur(6px);
}

.demo-mirror-badge::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.75);
  animation: demo-mirror-pulse 2s ease-in-out infinite;
}

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

.demo-sync-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--demo-gold);
  opacity: 0.9;
}

.demo-sync-hint::before,
.demo-sync-hint::after {
  content: "";
  flex: 1;
  max-width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224, 212, 160, 0.5));
}

.demo-sync-hint::after {
  background: linear-gradient(90deg, rgba(224, 212, 160, 0.5), transparent);
}

.demo-preview h3 {
  margin: 0.4rem 0 0.5rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.25;
  max-width: 100%;
  word-break: break-word;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

.demo-preview p {
  margin: 0;
  color: rgba(246, 244, 241, 0.92);
  max-width: 28rem;
  line-height: 1.5;
  font-size: 0.95rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.demo-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.75rem 1rem 0.95rem;
  border-top: 1px solid var(--demo-line);
  background: #0e0e14;
}

.demo-dock button {
  appearance: none;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 0.55rem;
  border: 1px solid var(--demo-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.demo-dock button:hover {
  border-color: rgba(255, 140, 110, 0.5);
  background: rgba(255, 140, 110, 0.12);
}

.demo-dock label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--demo-muted);
  font-size: 0.9rem;
  margin-left: 0.25rem;
}

.demo-meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  padding: 0.65rem 0.95rem;
  border-top: 1px solid var(--demo-line);
  background: var(--demo-panel);
  color: var(--demo-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

.demo-meta-bar strong {
  color: var(--demo-gold);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.demo-chip-row span {
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--demo-line);
  color: var(--demo-muted);
  background: rgba(0, 0, 0, 0.25);
}

/* ProjeÃ§Ã£o â€” largura total abaixo do controle */
.demo-screen {
  aspect-ratio: 16 / 9;
  max-height: 320px;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.demo-screen .label {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--demo-gold);
  font-weight: 700;
  z-index: 3;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.2rem 0.45rem;
  border-radius: 0.35rem;
}

.demo-screen h3 {
  margin: 0 0 0.45rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}

.demo-screen p {
  margin: 0;
  color: rgba(246, 244, 241, 0.92);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 36rem;
  line-height: 1.5;
  white-space: pre-line;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.demo-screen.is-blank::before {
  animation: none;
  background: #050508;
  filter: none;
}

.demo-screen.is-blank::after {
  animation: none;
  background: rgba(0, 0, 0, 0.92);
}

.demo-preview.is-blank::before {
  animation: none;
  background: #0a0a0e;
  filter: none;
}

.demo-preview.is-blank::after {
  animation: none;
  background: rgba(0, 0, 0, 0.88);
}

@media (prefers-reduced-motion: reduce) {
  .demo-preview::before,
  .demo-screen::before,
  .demo-preview::after,
  .demo-screen::after,
  .demo-mirror-badge::before {
    animation: none;
  }
}

/* Stage */
.demo-stage-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--demo-line);
  background: #101016;
  flex-wrap: wrap;
  align-items: center;
}

.demo-stage-bar strong {
  margin-right: auto;
  font-size: 0.85rem;
  color: var(--demo-gold);
}

.demo-stage-bar button {
  appearance: none;
  border: 1px solid var(--demo-line);
  background: transparent;
  color: var(--demo-muted);
  border-radius: 0.5rem;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
}

.demo-stage-bar button.is-active {
  background: rgba(212, 198, 141, 0.14);
  border-color: rgba(212, 198, 141, 0.45);
  color: var(--demo-gold);
}

.demo-stage-body {
  min-height: 240px;
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 0.85rem;
  align-content: center;
}

.demo-stage-body[data-layout="singer"] {
  text-align: center;
  background: #121018;
}

.demo-stage-body[data-layout="singer"] .lyrics-line {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.55;
  color: #fff;
}

.demo-stage-body[data-layout="musician"] {
  grid-template-columns: 1fr 1fr;
  background: #121218;
}

.demo-stage-body[data-layout="musician"] .chord {
  font-family: ui-monospace, monospace;
  color: var(--demo-gold);
  font-size: 0.95rem;
  white-space: pre-wrap;
  line-height: 1.5;
}

.demo-stage-body[data-layout="preacher"] {
  background: #0e1218;
}

.demo-stage-body[data-layout="preacher"] .tele {
  border-left: 3px solid var(--demo-coral);
  padding-left: 1rem;
  color: var(--demo-muted);
  line-height: 1.6;
  font-size: 1rem;
  white-space: pre-line;
}

/* Remote */
.demo-remote {
  max-width: 320px;
  margin: 0 auto;
  padding: 1.25rem;
  background: #121218;
}

.demo-remote-status {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--demo-muted);
  font-size: 0.9rem;
}

.demo-remote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.demo-remote-grid button {
  appearance: none;
  min-height: 3.25rem;
  border-radius: 0.75rem;
  border: 1px solid var(--demo-line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.demo-remote-grid button.primary {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #f0d78a, #d4af37 42%, #b8922a);
  border-color: transparent;
}

.demo-remote-grid button.warn {
  grid-column: 1 / -1;
  border-color: rgba(255, 140, 110, 0.4);
  color: #e8a090;
}

/* Flow steps */
.flow-ops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  counter-reset: ops;
}

.flow-ops article {
  position: relative;
  padding: 1.25rem 1.1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  background: rgba(255, 255, 255, 0.03);
}

.flow-ops article::before {
  counter-increment: ops;
  content: counter(ops);
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  background: linear-gradient(135deg, #f0d78a, #d4af37 42%, #b8922a);
  color: #1a1408;
  font-weight: 700;
  font-size: 0.8rem;
}

.flow-ops h3 {
  margin: 0 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  color: #fff;
}

.flow-ops p {
  margin: 0;
  color: var(--muted, rgba(246, 244, 241, 0.75));
  font-size: 0.95rem;
  line-height: 1.5;
}

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

  .demo-side {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    border-right: none;
    border-bottom: 1px solid var(--demo-line);
    padding: 0.55rem;
  }

  .demo-side span {
    width: auto;
    min-width: 3.2rem;
    padding: 0.35rem 0.45rem;
  }

  .demo-order {
    border-right: none;
    border-bottom: 1px solid var(--demo-line);
    max-height: 200px;
  }

  .demo-screen {
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .demo-stage-body[data-layout="musician"] {
    grid-template-columns: 1fr;
  }

  .flow-ops {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .flow-ops {
    grid-template-columns: 1fr;
  }
}

/* —— Controle Ao vivo (fiel ao app) —— */
.demo-control-app {
  padding: 0;
  overflow: hidden;
}
.dca-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--demo-line);
  background: #101018;
}
.dca-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.dca-modes span {
  padding: 0.35rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--demo-muted);
  border: 1px solid transparent;
}
.dca-modes .is-on {
  color: #1a1408;
  background: linear-gradient(135deg, #f0d78a, #d4af37);
}
.dca-status {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  color: var(--demo-muted);
}
.dca-status em { font-style: normal; color: var(--demo-gold); font-weight: 700; }
.dca-live {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(70, 180, 110, 0.2);
  color: #7ddea0;
  font-weight: 800;
}
.dca-body {
  display: grid;
  grid-template-columns: 2.6rem minmax(11rem, 15rem) minmax(0, 1.4fr) minmax(10rem, 13rem);
  min-height: 380px;
}
.dca-rail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: center;
  padding: 0.75rem 0.3rem;
  background: #0a0a0e;
  border-right: 1px solid var(--demo-line);
}
.dca-rail i {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.4rem;
  background: rgba(255,255,255,0.08);
  display: block;
}
.dca-rail i.is-on { background: linear-gradient(135deg, #f0d78a, #d4af37); }
.dca-order {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--demo-line);
  background: #121218;
  min-height: 0;
}
.dca-order header {
  padding: 0.75rem 0.85rem 0.55rem;
  border-bottom: 1px solid var(--demo-line);
}
.dca-order header strong { display: block; font-size: 0.88rem; }
.dca-order header small { color: var(--demo-muted); font-size: 0.72rem; }
.dca-order [data-demo-order] {
  flex: 1;
  overflow: auto;
  padding: 0.4rem;
}
.dca-order footer {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--demo-line);
  font-size: 0.75rem;
  color: var(--demo-muted);
}
.dca-order footer strong { display: block; color: var(--demo-text); font-size: 0.85rem; margin-top: 0.15rem; }
.demo-order-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.45rem;
  align-items: start;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 0.55rem;
  padding: 0.5rem 0.45rem;
  cursor: pointer;
  font: inherit;
}
.demo-order-item em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--demo-muted);
  padding-top: 0.15rem;
}
.demo-order-item strong { display: block; font-size: 0.82rem; line-height: 1.25; }
.demo-order-item small { color: var(--demo-muted); font-size: 0.7rem; }
.demo-order-item.is-active {
  background: rgba(212, 175, 55, 0.14);
  border-color: rgba(212, 175, 55, 0.35);
}
.dca-center {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  min-width: 0;
  background: #0e0e14;
}
.dca-preview {
  flex: 1;
  min-height: 180px;
  border-radius: 0.75rem;
}
.dca-seq {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.dca-seq strong {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--demo-muted);
}
.dca-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.dca-chip {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--demo-line);
  background: rgba(255,255,255,0.04);
  color: var(--demo-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
}
.dca-chip.is-active {
  background: #d4af37;
  color: #1a1408;
  border-color: transparent;
}
.dca-dock {
  display: flex;
  gap: 0.45rem;
}
.dca-dock button {
  flex: 1;
  min-height: 2.4rem;
  border-radius: 0.6rem;
  border: 1px solid var(--demo-line);
  background: rgba(255,255,255,0.04);
  color: var(--demo-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.dca-dock button.primary {
  background: linear-gradient(135deg, #f0d78a, #d4af37);
  color: #1a1408;
  border-color: transparent;
}
.dca-inspector {
  padding: 0.75rem;
  border-left: 1px solid var(--demo-line);
  background: #121218;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.dca-insp-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.35rem;
}
.dca-insp-tabs span {
  flex: 1;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.4rem 0.2rem;
  border-radius: 0.45rem;
  color: var(--demo-muted);
  border: 1px solid transparent;
}
.dca-insp-tabs .is-on {
  background: rgba(212, 175, 55, 0.16);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--demo-gold);
}
.dca-insp-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--demo-gold);
}
.dca-inspector label {
  font-size: 0.68rem;
  color: var(--demo-muted);
  margin-top: 0.25rem;
}
.dca-field {
  padding: 0.45rem 0.55rem;
  border-radius: 0.45rem;
  border: 1px solid var(--demo-line);
  background: rgba(0,0,0,0.25);
  font-size: 0.8rem;
}
.dca-field.muted { color: var(--demo-muted); font-size: 0.75rem; }
.dca-insp-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.75rem;
}
.dca-insp-actions .chip {
  flex: 1;
  text-align: center;
  padding: 0.45rem;
  border-radius: 0.45rem;
  border: 1px solid var(--demo-line);
  font-size: 0.75rem;
  font-weight: 700;
}
.dca-insp-actions .chip.primary {
  background: #d4af37;
  color: #1a1408;
  border-color: transparent;
}

.demo-pair {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
  align-items: start;
}
.demo-screen-card .demo-screen {
  min-height: 220px;
  border-radius: 1rem;
}

/* —— Remote phone —— */
.phone-frame {
  width: min(100%, 320px);
  margin-inline: auto;
  border-radius: 2rem;
  padding: 0.65rem;
  background: linear-gradient(160deg, #2a2a32, #121218);
  box-shadow: 0 28px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone-notch {
  width: 7rem;
  height: 0.7rem;
  margin: 0.15rem auto 0.55rem;
  border-radius: 999px;
  background: #050508;
}
.phone-screen {
  border-radius: 1.35rem;
  background: #121218;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255,255,255,0.06);
}
.rm-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 0.4rem;
}
.rm-head small {
  display: block;
  font-size: 0.65rem;
  color: var(--demo-muted);
  letter-spacing: 0.08em;
}
.rm-brand {
  display: block;
  color: var(--demo-gold);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}
.rm-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}
.rm-chip {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(212,175,55,0.45);
  color: var(--demo-gold);
}
.rm-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--demo-muted);
}
.rm-title {
  margin: 0.25rem 0.85rem 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.2;
}
.rm-sub {
  margin: 0.2rem 0.85rem 0.75rem;
  color: var(--demo-muted);
  font-size: 0.85rem;
}
.rm-pages { flex: 1; padding: 0 0.75rem 0.75rem; overflow: auto; }
.rm-page { display: none; }
.rm-page.is-active { display: block; }
.rm-card {
  padding: 0.85rem;
  border-radius: 0.9rem;
  border: 1px solid var(--demo-line);
  background: #1a1a22;
  margin-bottom: 0.65rem;
}
.rm-card small {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--demo-gold);
  font-weight: 800;
  margin-bottom: 0.45rem;
}
.rm-card strong { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.rm-card p { margin: 0 0 0.65rem; color: var(--demo-muted); font-size: 0.78rem; }
.rm-card > span { color: var(--demo-muted); font-size: 0.75rem; }
.rm-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.rm-nav-grid button {
  min-height: 2.6rem;
  border-radius: 0.65rem;
  border: 1px solid var(--demo-line);
  background: #101016;
  color: var(--demo-text);
  font: inherit;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}
.rm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.rm-list li {
  padding: 0.55rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(255,255,255,0.04);
  font-size: 0.85rem;
}
.rm-order-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1.5rem 1fr auto;
  gap: 0.4rem;
  align-items: center;
  text-align: left;
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  color: inherit;
  border-radius: 0.55rem;
  padding: 0.55rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
  font: inherit;
}
.rm-order-item.is-active {
  border-color: rgba(212,175,55,0.4);
  background: rgba(212,175,55,0.12);
}
.rm-order-item em { font-style: normal; color: var(--demo-muted); font-size: 0.7rem; }
.rm-order-item small { color: var(--demo-muted); font-size: 0.68rem; }
.rm-tabbar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.35rem 0.65rem;
  border-top: 1px solid var(--demo-line);
  background: #0e0e14;
}
.rm-tabbar button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--demo-muted);
  font: inherit;
  font-size: 0.58rem;
  font-weight: 700;
  padding: 0.45rem 0.15rem;
  border-radius: 0.55rem;
  cursor: pointer;
  line-height: 1.2;
}
.rm-tabbar button.is-active {
  background: rgba(224, 212, 160, 0.18);
  color: #f0e6c0;
}

@media (max-width: 980px) {
  .dca-body {
    grid-template-columns: 1fr;
  }
  .dca-rail { flex-direction: row; justify-content: center; border-right: none; border-bottom: 1px solid var(--demo-line); }
  .dca-order { border-right: none; max-height: 220px; }
  .dca-inspector { border-left: none; border-top: 1px solid var(--demo-line); }
  .demo-pair { grid-template-columns: 1fr; }
}

/* —— Monitor Stage (fiel ao app) —— */
.monitor-stage {
  max-width: 980px;
  margin-inline: auto;
  perspective: 1200px;
}
.monitor-bezel {
  border-radius: 1.1rem 1.1rem 0.4rem 0.4rem;
  padding: 0.7rem 0.7rem 0.55rem;
  background: linear-gradient(165deg, #2c2c34, #141418 55%, #0c0c10);
  box-shadow:
    0 30px 80px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.monitor-screen {
  border-radius: 0.55rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: #0a0a0e;
}
.monitor-chin {
  height: 0.55rem;
  background: #1a1a20;
  border-radius: 0 0 0.35rem 0.35rem;
  margin: 0 12%;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}
.monitor-stand {
  width: 4.5rem;
  height: 2.2rem;
  margin: 0 auto;
  background: linear-gradient(180deg, #2a2a30, #15151a);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}
.monitor-base {
  width: 11rem;
  height: 0.55rem;
  margin: 0 auto;
  border-radius: 999px;
  background: #1c1c22;
  box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.stage-app {
  --st-line: rgba(255,255,255,0.08);
  --st-gold: #e0d4a0;
  --st-muted: rgba(246,244,241,0.7);
  font-family: Manrope, system-ui, sans-serif;
  color: #f6f4f1;
  background: #121218;
  min-height: 420px;
}
.st-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--st-line);
  background: #0e0e14;
}
.st-tabs {
  display: flex;
  gap: 0.3rem;
}
.st-tabs span {
  padding: 0.35rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-tabs .is-on {
  background: rgba(224,212,160,0.16);
  color: var(--st-gold);
}
.st-brand strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  color: var(--st-gold);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}
.st-brand em {
  display: inline-block;
  margin-top: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(224,212,160,0.35);
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--st-gold);
}
.st-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.st-chip {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.28rem 0.55rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(224,212,160,0.4);
  color: var(--st-gold);
}
.st-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #8fd4a0;
}
.st-link i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #4fd08a;
  box-shadow: 0 0 8px #4fd08a;
}
.st-clock {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  color: var(--st-gold);
  font-size: 1.05rem;
}
.st-tools {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
  gap: 0.55rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--st-line);
  background: #16161e;
}
.st-tool small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--st-muted);
  margin-bottom: 0.3rem;
  font-weight: 800;
}
.st-profiles {
  display: flex;
  gap: 0.25rem;
}
.st-profiles button {
  appearance: none;
  border: 1px solid var(--st-line);
  background: rgba(255,255,255,0.03);
  color: var(--st-muted);
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}
.st-profiles button.is-active {
  background: linear-gradient(135deg, #f0d78a, #d4af37);
  color: #1a1408;
  border-color: transparent;
}
.st-meter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid var(--st-line);
  background: rgba(0,0,0,0.25);
  font-size: 0.78rem;
}
.st-meter span { color: var(--st-muted); }
.st-meter b { font-weight: 800; }
.st-meter i {
  flex: 1;
  height: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #d4af37, rgba(212,175,55,0.15));
}
.st-main {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(12rem, 16rem);
  min-height: 280px;
}
.st-preview {
  position: relative;
  padding: 0.85rem;
  border-right: 1px solid var(--st-line);
  background: #0a0a0e;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.st-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--st-muted);
}
.st-slide {
  padding: 0.2rem 0.5rem;
  border-radius: 0.4rem;
  background: rgba(224,212,160,0.12);
  color: var(--st-gold);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}
.st-preview-canvas {
  flex: 1;
  min-height: 200px;
  border-radius: 0.75rem;
  border: 1px solid var(--st-line);
  background:
    radial-gradient(ellipse at 50% 40%, hsl(var(--demo-mirror-hue, 260) 35% 18% / 0.55), #050508 70%);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  text-align: center;
  animation: stPulse 8s ease-in-out infinite alternate;
}
@keyframes stPulse {
  from { filter: saturate(1); }
  to { filter: saturate(1.15) brightness(1.05); }
}
.st-preview-canvas .lyrics-line {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  color: var(--st-gold);
  line-height: 1.25;
  text-shadow: 0 8px 30px rgba(0,0,0,0.45);
}
.st-preview-canvas .chord,
.st-preview-canvas .tele {
  margin: 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  color: #d8d0c0;
  text-align: left;
  white-space: pre-wrap;
  max-width: 100%;
}
.st-preview[data-layout="singer"] .chord,
.st-preview[data-layout="singer"] .tele { display: none; }
.st-preview[data-layout="musician"] .tele { display: none; }
.st-preview[data-layout="preacher"] .lyrics-line,
.st-preview[data-layout="preacher"] .chord { display: none; }
.st-order {
  display: flex;
  flex-direction: column;
  background: #14141c;
  min-height: 0;
}
.st-order > header {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--st-line);
  font-size: 0.85rem;
}
.st-order [data-demo-order] {
  flex: 1;
  overflow: auto;
  padding: 0.4rem;
  max-height: 260px;
}
.st-order footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border-top: 1px solid var(--st-line);
  font-size: 0.68rem;
  color: var(--st-muted);
}
.st-sync {
  appearance: none;
  border: 1px solid rgba(79,208,138,0.35);
  background: rgba(79,208,138,0.1);
  color: #8fd4a0;
  border-radius: 0.45rem;
  padding: 0.35rem 0.55rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.st-sync i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #4fd08a;
}

@media (max-width: 860px) {
  .st-tools { grid-template-columns: 1fr 1fr; }
  .st-main { grid-template-columns: 1fr; }
  .st-preview { border-right: none; border-bottom: 1px solid var(--st-line); }
  .st-order [data-demo-order] { max-height: 180px; }
}
