:root {
  --dx-bg-1: #050816;
  --dx-bg-2: #070b17;
  --dx-bg-3: #0a1020;
  --dx-blue: #2ea7ff;
  --dx-blue-soft: #7dd3fc;
  --dx-violet: #8b5cf6;
  --dx-green: #22c55e;
  --dx-red: #ef4444;
  --dx-amber: #f59e0b;
  --dx-text-1: #f8fafc;
  --dx-text-2: rgba(255, 255, 255, 0.7);
  --dx-text-3: rgba(255, 255, 255, 0.42);
  --dx-border: rgba(255, 255, 255, 0.085);
}

.demo-showcase {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 26px 110px;
}

.demo-orb {
  position: absolute;
  pointer-events: none;
}

.demo-orb-blue {
  width: 980px;
  height: 620px;
  left: 50%;
  top: 128px;
  transform: translateX(-56%);
  background: radial-gradient(ellipse at center, rgba(46, 167, 255, 0.14) 0%, rgba(46, 167, 255, 0.03) 52%, transparent 78%);
  filter: blur(88px);
}

.demo-orb-violet {
  width: 520px;
  height: 460px;
  right: 56px;
  top: 170px;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.02) 56%, transparent 84%);
  filter: blur(84px);
}

.demo-header {
  text-align: center;
  margin-bottom: 34px;
}

.demo-header h2 {
  margin-bottom: 12px;
  color: var(--dx-text-1);
  font-size: clamp(2rem, 3vw, 2.88rem);
  letter-spacing: -0.035em;
  line-height: 1.12;
  font-weight: 800;
}

.demo-header p {
  margin: 0 auto;
  max-width: 650px;
  color: var(--dx-text-2);
  line-height: 1.75;
  font-size: 0.98rem;
}

.demo-window {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(8, 14, 30, 0.98), rgba(5, 10, 23, 0.987));
  box-shadow:
    0 48px 100px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 0 80px rgba(46, 167, 255, 0.08),
    0 0 120px rgba(139, 92, 246, 0.04);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.demo-window::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(125, 211, 252, 0.82), transparent);
}

.demo-window-top {
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(3, 7, 18, 0.92);
}

.demo-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; box-shadow: 0 0 12px rgba(255, 95, 87, 0.46); }
.dot.yellow { background: #febc2e; box-shadow: 0 0 10px rgba(254, 188, 46, 0.35); }
.dot.green { background: #28c840; box-shadow: 0 0 10px rgba(40, 200, 64, 0.33); }

.demo-domain-pill {
  justify-self: center;
  border-radius: 999px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  color: var(--dx-text-3);
  letter-spacing: 0.02em;
  font-size: 0.71rem;
}

.demo-window-right {
  justify-self: end;
  width: 66px;
  height: 10px;
}

.demo-body {
  display: grid;
  grid-template-columns: 188px 376px minmax(0, 1fr);
  min-height: 600px;
}

.demo-sidebar,
.demo-list,
.demo-panel {
  min-width: 0;
}

.demo-sidebar {
  padding: 11px 9px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.97), rgba(4, 8, 18, 0.94));
}

.demo-logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-weight: 700;
  padding: 2px 3px;
  margin-bottom: 8px;
  font-size: 0.82rem;
}

.demo-logo-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #1d4ed8, #2ea7ff);
  box-shadow: 0 0 14px rgba(46, 167, 255, 0.42);
}

.demo-search {
  height: 32px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.36);
  padding: 0 9px;
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  margin-bottom: 8px;
}

.demo-nav-list {
  display: grid;
  gap: 3px;
}

.demo-nav-item {
  height: 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.71rem;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.demo-nav-item strong {
  min-width: 18px;
  height: 16px;
  border-radius: 99px;
  padding: 0 5px;
  font-size: 0.58rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  color: #cbe8ff;
  background: rgba(59, 130, 246, 0.22);
}

.demo-nav-item.active {
  color: #e5f0ff;
  border-color: rgba(46, 167, 255, 0.32);
  background: linear-gradient(90deg, rgba(46, 167, 255, 0.14), rgba(46, 167, 255, 0.03));
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.08), 0 0 12px rgba(46, 167, 255, 0.12);
}

.demo-sidebar-status {
  margin-top: auto;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.06);
  color: #4ade80;
  font-size: 0.64rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
}

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

@keyframes demo-live-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.demo-list {
  position: relative;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  background: linear-gradient(180deg, rgba(5, 10, 24, 0.97), rgba(4, 8, 18, 0.94));
}

.demo-list-header {
  height: 50px;
  padding: 0 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-list-header h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.demo-list-header p {
  margin-top: 2px;
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1;
}

.demo-list-mode {
  color: #8bd7ff;
  font-size: 0.65rem;
  font-weight: 700;
}

.demo-mode-scan-icon {
  display: inline-block;
  margin-right: 5px;
  color: #60a5fa;
  font-size: 0.68rem;
  transform: translateY(-1px);
}

@keyframes scanBeamSlide {
  0%   { opacity: 0;   transform: translateY(-78px); }
  6%   { opacity: 1;   transform: translateY(-78px); }
  94%  { opacity: 1; }
  100% { opacity: 0;   transform: translateY(468px); }
}

.demo-scan-beam {
  position: absolute;
  left: 0;
  right: 0;
  top: 54px;
  height: 78px;
  opacity: 0;
  pointer-events: none;
  border-top: 1px solid rgba(125, 211, 252, 0.5);
  border-bottom: 1px solid rgba(125, 211, 252, 0.15);
  background: linear-gradient(180deg,
    rgba(46, 167, 255, 0.22) 0%,
    rgba(46, 167, 255, 0.11) 55%,
    transparent 100%);
  box-shadow: 0 0 22px rgba(46, 167, 255, 0.14);
  z-index: 3;
}

.demo-showcase.is-scan .demo-scan-beam {
  opacity: 1;
}

.demo-mail-list {
  display: flex;
  flex-direction: column;
}

.demo-mail {
  min-height: 78px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  border-left: 2px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.demo-mail:hover {
  background: rgba(255, 255, 255, 0.02);
}

.demo-mail.active-mail {
  border-left-color: var(--dx-blue);
  background: linear-gradient(90deg, rgba(46, 167, 255, 0.12), rgba(46, 167, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.08), 0 0 14px rgba(46, 167, 255, 0.1);
}

.demo-mail.is-scan-mail {
  position: relative;
  transition: border-left-color 0.35s ease, background 0.35s ease;
}

.demo-mail.is-scan-mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,0.02), rgba(96,165,250,0.08), rgba(255,255,255,0.02));
}

/* Check icon hidden until beam passes */
.is-scan-mail .mail-scan-check {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.28s ease 0.08s, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s;
}

/* Row gets scanned: green tint + check appears */
.is-scan-mail.scanned .mail-scan-check {
  opacity: 1;
  transform: scale(1);
}

.is-scan-mail.scanned {
  border-left-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.05) 0%, transparent 60%);
}

.demo-mail.is-hidden {
  opacity: 0.2;
  transform: scale(0.985);
}

.demo-showcase .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-showcase .avatar.red { background: #3a1111; color: #fecaca; }
.demo-showcase .avatar.blue { background: #11284d; color: #bfdbfe; }
.demo-showcase .avatar.green { background: #103626; color: #bbf7d0; }
.demo-showcase .avatar.purple { background: #2b1845; color: #ddd6fe; }
.demo-showcase .avatar.darkred { background: #4a1212; color: #fecaca; }
.demo-showcase .avatar.slate { background: #1e293b; color: #94a3b8; }

.mail-content {
  flex: 1;
  min-width: 0;
}

.mail-side {
  width: 14px;
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
  flex-shrink: 0;
}

.mail-unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3b82f6;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.mail-scan-check {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mail-scan-check svg {
  width: 14px;
  height: 14px;
  stroke: #22c55e;
  fill: none;
  stroke-width: 2;
  overflow: visible;
}

.mail-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.mail-top strong {
  color: #f8fafc;
  font-size: 0.76rem;
  font-weight: 700;
}

.mail-top span {
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.61rem;
  flex-shrink: 0;
}

.mail-subject {
  color: #d1e7ff;
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
  font-size: 0.68rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-preview {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-tags {
  margin-top: 3px;
  display: flex;
  gap: 4px;
}

.mail-tag {
  flex-shrink: 0;
  height: 16px;
  border-radius: 6px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  font-size: 0.54rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}

.mail-tag.urgent { color: #fda4af; background: rgba(239, 68, 68, 0.16); border: 1px solid rgba(239, 68, 68, 0.34); }
.mail-tag.client { color: #93c5fd; background: rgba(46, 167, 255, 0.15); border: 1px solid rgba(46, 167, 255, 0.34); }
.mail-tag.facture { color: #86efac; background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.32); }

.demo-panel {
  padding: 11px;
  background: linear-gradient(180deg, rgba(4, 8, 19, 0.95), rgba(4, 8, 18, 0.98));
}

.demo-panel-inner {
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.01);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: panel-in 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.demo-phead {
  min-height: 50px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.demo-ptitle {
  color: #f8fafc;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

.demo-psub {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.6rem;
  font-weight: 500;
}

.demo-scan-head {
  min-height: 66px;
  padding: 10px 14px 8px;
}

.demo-scan-head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-scan-badge {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2f64ff, #3d8bff);
  box-shadow: 0 0 24px rgba(46, 167, 255, 0.28);
}

.demo-scan-badge svg {
  width: 20px;
  height: 20px;
  fill: #dbeafe;
}

.demo-scan-title {
  font-size: 0.92rem;
  letter-spacing: -0.015em;
}

.demo-scan-sub {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.28);
}

.demo-scan-pct {
  color: #3b82f6;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.demo-pill {
  height: 20px;
  border-radius: 999px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.demo-pill.urgent { color: #fecaca; background: rgba(239, 68, 68, 0.16); border: 1px solid rgba(239, 68, 68, 0.35); }
.demo-pill.blue { color: #bfdbfe; background: rgba(46, 167, 255, 0.16); border: 1px solid rgba(46, 167, 255, 0.34); }
.demo-pill.green { color: #bbf7d0; background: rgba(34, 197, 94, 0.16); border: 1px solid rgba(34, 197, 94, 0.34); }
.demo-pill.violet { color: #e9d5ff; background: rgba(139, 92, 246, 0.18); border: 1px solid rgba(139, 92, 246, 0.36); }
.demo-pill.amber { color: #fde68a; background: rgba(245, 158, 11, 0.18); border: 1px solid rgba(245, 158, 11, 0.36); }

.demo-pbody {
  flex: 1;
  padding: 10px 11px;
  overflow: auto;
}

.demo-row {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.demo-row-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #3a1111;
  color: #fecaca;
  font-size: 0.56rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.demo-row-meta {
  color: var(--dx-text-3);
  font-size: 0.61rem;
  line-height: 1.5;
}

.demo-mail-body {
  white-space: pre-line;
  color: var(--dx-text-2);
  font-size: 0.67rem;
  line-height: 1.78;
}

.demo-before-head {
  min-height: 58px;
  padding: 10px 18px;
}

.demo-before-title {
  font-size: 0.93rem;
  letter-spacing: -0.02em;
}

.demo-before-body-wrap {
  padding: 0;
  display: flex;
  flex-direction: column;
}

.demo-before-contact {
  min-height: 58px;
  padding: 10px 18px;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-before-contact-meta {
  display: grid;
  gap: 2px;
}

.demo-before-contact-meta strong {
  color: #f8fafc;
  font-size: 0.72rem;
  font-weight: 700;
}

.demo-before-contact-meta span {
  color: rgba(255, 255, 255, 0.26);
  font-size: 0.62rem;
}

.demo-before-time {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.62rem;
}

.demo-before-meta {
  padding: 16px 18px 12px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.68rem;
  line-height: 1.72;
}

.demo-before-divider {
  height: 1px;
  margin: 0 18px 14px;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(148,163,184,0.75) 12%, rgba(148,163,184,0.75) 88%, rgba(255,255,255,0));
}

.demo-before-copy {
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.71rem;
  line-height: 1.98;
}

.demo-before-actions {
  margin-top: auto;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(2, 5, 14, 0.46);
}

.demo-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.demo-action-btn {
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: var(--dx-text-2);
  padding: 0 10px;
  font-size: 0.62rem;
  font-weight: 600;
}

.demo-action-btn.red {
  border-color: rgba(239, 68, 68, 0.36);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.demo-action-btn.blue {
  border-color: rgba(46, 167, 255, 0.38);
  background: rgba(46, 167, 255, 0.13);
  color: #bfdbfe;
}

.demo-progress-wrap {
  margin-bottom: 10px;
}

.demo-scan-progress-wrap {
  margin-bottom: 14px;
}

.demo-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.demo-progress-top strong {
  color: #eaf4ff;
  font-size: 0.7rem;
}

.demo-progress-top span {
  color: #93c5fd;
  font-size: 0.62rem;
  font-weight: 700;
}

.demo-progress-track {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.demo-progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #2ea7ff, #7dd3fc);
  box-shadow: 0 0 10px rgba(46, 167, 255, 0.7);
  transition: width 0.45s ease;
}

.demo-scan-section-label {
  margin-bottom: 8px;
  color: rgba(96, 165, 250, 0.26);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.demo-stat-list {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.demo-stat-item {
  min-height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  padding: 0 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--dx-text-2);
  font-size: 0.64rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.demo-stat-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-stat-item strong {
  color: #f8fafc;
  font-size: 0.66rem;
}

.demo-stat-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-stat-icon {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: inline-block;
  position: relative;
}

.demo-stat-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.9;
}

.demo-stat-red {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.demo-stat-red strong { color: #ef4444; }

.demo-stat-blue {
  color: #cfe5ff;
  border-color: rgba(59, 130, 246, 0.28);
  background: rgba(59, 130, 246, 0.1);
}

.demo-stat-blue strong { color: #3b82f6; }

.demo-stat-green {
  color: #d2ffe6;
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.08);
}

.demo-stat-green strong { color: #22c55e; }

.demo-stat-gray {
  color: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.demo-stat-gray strong { color: rgba(255, 255, 255, 0.52); }

.demo-analysis-box {
  border-radius: 10px;
  border: 1px solid rgba(46, 167, 255, 0.26);
  background: rgba(46, 167, 255, 0.09);
  padding: 9px 10px;
}

.demo-analysis-box p {
  color: var(--dx-text-2);
  font-size: 0.64rem;
  line-height: 1.7;
}

.demo-scan-analysis {
  margin-top: 6px;
  padding: 14px 14px 12px;
  background: rgba(15, 30, 74, 0.28);
}

.demo-scan-analysis-label {
  margin-bottom: 12px;
}

.demo-scan-bullets {
  margin: 0;
  padding-left: 15px;
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.67rem;
  line-height: 1.6;
}

.demo-scan-bullets li::marker {
  color: #3b82f6;
}

.demo-summary {
  margin-top: 8px;
  border-radius: 9px;
  border: 1px solid rgba(46, 167, 255, 0.28);
  background: rgba(46, 167, 255, 0.1);
  color: #dbeafe;
  font-size: 0.64rem;
  padding: 8px 10px;
}

.demo-sort-head {
  min-height: 60px;
  padding: 9px 13px 7px;
}

.demo-sort-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.demo-sort-sub {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
  font-weight: 500;
}}

.demo-sort-body {
  padding: 0;
  gap: 6px;
  display: grid;
  grid-template-columns: 1fr;
}

.demo-sort-card {
  min-height: 48px;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
  position: relative;
}

.demo-sort-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.04));
  border-color: rgba(239, 68, 68, 0.18);
}

.demo-sort-blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.04));
  border-color: rgba(59, 130, 246, 0.18);
}

.demo-sort-green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.04));
  border-color: rgba(34, 197, 94, 0.18);
}

.demo-sort-gray {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 255, 255, 0.1);
}

.demo-sort-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.demo-sort-red .demo-sort-icon {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(239, 68, 68, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.demo-sort-blue .demo-sort-icon {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.demo-sort-green .demo-sort-icon {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(34, 197, 94, 0.08));
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.demo-sort-gray .demo-sort-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.demo-sort-meta {
  flex: 1;
  min-width: 0;
}

.demo-sort-card-title {
  font-size: 0.73rem;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 1px;
}

.demo-sort-red .demo-sort-card-title {
  color: #fcc2c2;
}

.demo-sort-blue .demo-sort-card-title {
  color: #bfdbfe;
}

.demo-sort-green .demo-sort-card-title {
  color: #c6f6d5;
}

.demo-sort-gray .demo-sort-card-title {
  color: rgba(255, 255, 255, 0.58);
}

.demo-sort-card-desc {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.36);
}

.demo-sort-value {
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  flex-shrink: 0;
  line-height: 1;
}

.demo-sort-red .demo-sort-value {
  color: #dc2626;
}

.demo-sort-blue .demo-sort-value {
  color: #3b82f6;
}

.demo-sort-green .demo-sort-value {
  color: #16a34a;
}

.demo-sort-gray .demo-sort-value {
  color: rgba(255, 255, 255, 0.48);
}

.demo-sort-footer {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(46, 167, 255, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(46, 167, 255, 0.14);
  color: #93c5fd;
  font-size: 0.63rem;
  text-align: center;
  letter-spacing: -0.01em;
  font-weight: 500;
}

.demo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 13px;
}

.demo-kpi {
  border-radius: 10px;
  border: 1px solid rgba(46, 167, 255, 0.15);
  background: linear-gradient(135deg, rgba(46, 167, 255, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  text-align: center;
  padding: 11px 7px;
  min-height: 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-kpi strong {
  display: block;
  color: #f8fafc;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.demo-kpi span {
  color: var(--dx-text-3);
  font-size: 0.58rem;
  line-height: 1.2;
}

.demo-lines {
  display: grid;
  gap: 7px;
}

.demo-line {
  min-height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(59, 130, 246, 0.12);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(46, 167, 255, 0.04) 100%);
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--dx-text-2);
  font-size: 0.63rem;
  line-height: 1.3;
  font-weight: 500;
  transition: all 0.2s ease;
}

.demo-line:hover {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(46, 167, 255, 0.06) 100%);
}

.demo-compose-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 9px 13px;
  display: grid;
  gap: 3px;
}

.demo-compose-line {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  font-size: 0.63rem;
  align-items: center;
}

.demo-compose-line b {
  color: rgba(255, 255, 255, 0.34);
  font-weight: 600;
  font-size: 0.62rem;
}

.demo-compose-line span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.63rem;
}

.demo-compose-body {
  flex: 1;
  padding: 11px 13px;
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.68rem;
  line-height: 1.72;
  overflow: auto;
  min-height: 180px;
}

.demo-compose-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  height: 44px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.005), transparent);
}

.demo-foot-status {
  color: #4ade80;
  font-size: 0.62rem;
  font-weight: 500;
}

.demo-send-btn {
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #1d4ed8, #2ea7ff);
  color: #f0f9ff;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px rgba(46, 167, 255, 0.3);
  letter-spacing: -0.01em;
}

.demo-reply-head {
  min-height: 60px;
  padding: 9px 13px 8px;
}

.demo-reply-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.demo-reply-sub {
  font-size: 0.6rem;
  color: #4ade80;
  margin-top: 1px;
  font-weight: 500;
}

.demo-results-title {
  font-size: 0.82rem;
  font-weight: 700;
}

.demo-results-sub {
  font-size: 0.58rem;
  color: #4ade80;
  font-weight: 500;
  margin-top: 2px;
}

.demo-controls {
  margin-top: 17px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.demo-step-btn {
  height: 31px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dx-text-3);
  font-size: 0.67rem;
  font-weight: 600;
  padding: 0 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-step-btn:hover {
  transform: translateY(-1px);
  color: var(--dx-text-2);
}

.demo-step-btn.active[data-tone="slate"] {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.45);
  background: rgba(148, 163, 184, 0.16);
}

.demo-step-btn.active[data-tone="blue"] {
  color: #e8f4ff;
  border-color: rgba(46, 167, 255, 0.48);
  background: rgba(46, 167, 255, 0.2);
  box-shadow: 0 0 18px rgba(46, 167, 255, 0.22);
}

.demo-step-btn.active[data-tone="cyan"] {
  color: #dff8ff;
  border-color: rgba(34, 211, 238, 0.46);
  background: rgba(34, 211, 238, 0.17);
}

.demo-step-btn.active[data-tone="violet"] {
  color: #f1eaff;
  border-color: rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.23);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.demo-step-btn.active[data-tone="amber"] {
  color: #fff4cc;
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.22);
}

.demo-player {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
}

.player-btn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.04);
  color: #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.player-btn.primary {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border-color: rgba(46, 167, 255, 0.44);
  background: radial-gradient(circle at 30% 30%, #3cb7ff 0%, #2ea7ff 42%, #1d4ed8 100%);
  box-shadow: 0 0 24px rgba(46, 167, 255, 0.5);
}

.demo-status-pill {
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.03);
  color: var(--dx-text-2);
  font-size: 0.66rem;
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

@media (max-width: 1100px) {
  .demo-showcase {
    padding: 70px 18px 96px;
  }

  .demo-body {
    grid-template-columns: 1fr;
  }

  .demo-sidebar,
  .demo-list {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .demo-panel {
    min-height: 430px;
  }

  .demo-kpi-grid {
    grid-template-columns: 1fr;
  }
}
