.demo-wrap {
  position: relative;
  z-index: 2;
  perspective: 2400px;
  padding: 0 4px;
}
.demo-frame {
  max-width: 1240px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--landing-reference-69);
  overflow: hidden;
  box-shadow:
    var(--landing-reference-70);
  transform: rotateX(4deg);
  transform-origin: center top;
  transition: transform 0.9s var(--ease-out);
  animation: float 8s ease-in-out infinite;
  position: relative;
}
.demo-frame:hover {
  transform: rotateX(0deg);
  animation-play-state: paused;
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  background: var(--landing-reference-71);
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.demo-dot.r { background: var(--landing-reference-72); }
.demo-dot.y { background: var(--landing-reference-73); }
.demo-dot.g { background: var(--landing-reference-74); }
.demo-url {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-main-area { display: flex; flex-direction: column; min-width: 0; }
.demo-topbar {
  height: 56px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: var(--landing-reference-75);
  gap: 16px;
  flex-shrink: 0;
}
.demo-topbar-left {
  font-size: 12.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-topbar-left span { color: var(--text); font-weight: 500; }
.demo-topbar-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.demo-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  flex: 1;
  min-height: 0;
}
.demo-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.demo-page-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-page-sub { font-size: 12px; color: var(--text-2); }
.demo-table-wrap { overflow: hidden; margin: 0 -20px; padding: 0 20px; }
.demo-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  min-width: 100%;
}
.demo-table thead th {
  padding: 8px 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  background: var(--landing-reference-76);
  text-align: left;
  white-space: nowrap;
}
.demo-table thead th:last-child { text-align: right; }
.demo-table thead th:nth-child(4),
.demo-table thead th:nth-child(5) { text-align: right; }
.demo-table tbody td {
  padding: 11px 10px;
  border-bottom: var(--landing-reference-77);
  vertical-align: middle;
  overflow: hidden;
}
.demo-table tbody td:nth-child(4),
.demo-table tbody td:nth-child(5) { text-align: right; }
.demo-table tbody tr:last-child td { border-bottom: none; }
.demo-table th:nth-child(1) { width: 78px; }
.demo-table th:nth-child(2) { width: 74px; }
.demo-table th:nth-child(3) { width: auto; }
.demo-table th:nth-child(4) { width: 74px; }
.demo-table th:nth-child(5) { width: 132px; }
.demo-table tbody td:nth-child(5) { padding-left: 6px; padding-right: 8px; text-align: right; }
.demo-table tbody td:nth-child(5) .demo-pill { width: 100%; justify-content: center; }
.demo-order-id-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gold-bright);
  font-weight: 500;
}
.demo-order-product-cell {
  color: var(--text-2);
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 3px 8px;
  min-width: 0;
  border-radius: var(--landing-reference-33);
  font-size: 10px;
  font-weight: 600;
  border: 1px solid;
  white-space: nowrap;
  line-height: 1.2;
  transition: all 0.4s var(--ease);
}
.demo-pill::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color 0.4s;
}
.demo-pill.created { background: var(--landing-reference-78); color: var(--text-2); border-color: var(--border); }
.demo-pill.created::before { background: var(--text-3); }
.demo-pill.processing { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-border); animation: glowAmber 2.5s ease-in-out infinite; }
.demo-pill.processing::before { background: var(--amber); animation: dotPulse 2s infinite; }
.demo-pill.awaiting { background: var(--blue-bg); color: var(--blue); border-color: var(--blue-border); animation: glowBlue 2.5s ease-in-out infinite; }
.demo-pill.awaiting::before { background: var(--blue); animation: dotPulse 2s infinite; }
.demo-pill.issued { background: var(--green-bg); color: var(--green); border-color: var(--green-border); animation: glowGreen 2.5s ease-in-out infinite; }
.demo-pill.issued::before { background: var(--green); animation: dotPulse 2s infinite; }
.demo-pill.cancelled { background: var(--red-bg); color: var(--red); border-color: var(--red-border); animation: glowRed 2s ease-in-out infinite; }
.demo-pill.cancelled::before { background: var(--red); animation: dotPulse 1.5s infinite; }
.demo-pill.error { background: var(--red-bg); color: var(--red); border-color: var(--red-border); animation: glowRed 2s ease-in-out infinite; }
.demo-pill.error::before { background: var(--red); animation: dotPulse 1.5s infinite; }
.demo-pill.changing { animation: pillChange 0.5s ease-out; }
