:root {
  --bg: #eefaf7;
  --txt: #243b40;
  --txt-soft: #607577;
  --kicker: #087c7b;
  --teal: #0d888c;
  --teal-dark: #173c44;
  --teal-light: #d6eded;
  --line: #a4d9d6;
  --panel: #e8f7f5;
  --panel-2: #d3eceb;
  --green: #16a77a;
  --text-dark: #23353a;
  --shadow: rgba(25, 89, 90, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #eefaf7, #eef5f1);
}

.layout-wrap {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 24px;
}

.scenario-page {
  width: min(1280px, 100%);
}

.scenario-header {
  margin-bottom: 34px;
}

.scenario-header .kicker {
  font-size: 13px;
  font-weight: 800;
  color: var(--kicker);
  letter-spacing: 0.12em;
  line-height: 1;
}

.scenario-header h1 {
  margin: 12px 0 10px;
  font-size: clamp(34px, 4.6vw, 51px);
  line-height: 1.02;
  font-weight: 900;
  color: #2f3d45;
}

.scenario-header .subtitle {
  font-size: 17px;
  color: #6b777c;
}

.scenario-grid {
  display: flex;
  align-items: stretch;
  gap: 38px;
}

.scenario-steps {
  flex: 1.12;
  position: relative;
  padding-top: 8px;
}

.scenario-steps:before {
  content: "";
  position: absolute;
  left: 31px;
  top: 4px;
  bottom: 2px;
  width: 2px;
  background: linear-gradient(180deg, var(--kicker), #8dd6ce);
}

.step-row {
  position: relative;
  min-height: 106px;
  padding: 10px 0 10px 88px;
  display: flex;
  align-items: center;
}

.step-row .step-number {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #168d90, #0f758a);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 25px;
  border: 4px solid #bceee9;
  position: absolute;
  left: 0;
  top: 4px;
}

.step-row h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.04;
  margin: 0 0 8px;
  font-weight: 900;
  color: #21353e;
}

.step-row p {
  margin: 0;
  color: var(--txt-soft);
  font-size: 14px;
  line-height: 1.5;
}

.demo-panel {
  flex: 0.88;
  min-height: 420px;
  background: linear-gradient(180deg, #dceff0, #ccdcdc);
  border-radius: 12px;
  border: 1px solid #b3d4dc;
  padding: 28px 34px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}

.demo-panel h2 {
  margin: 0 0 22px;
  font-size: clamp(25px, 2.8vw, 34px);
  line-height: 1.05;
  color: #0b7d81;
  font-weight: 900;
}

.demo-card {
  padding: 24px 0 10px;
  border-top: 1px solid rgba(64, 104, 107, 0.30);
}

.demo-card:first-of-type {
  border-top: none;
}

.demo-card h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.1;
  font-weight: 900;
  color: #203a3c;
}

.demo-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #526b6a;
}

.demo-page-body {
  background: linear-gradient(120deg, #edf9f5, #eef6ef);
}

.demo-page-shell {
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #154d43;
  color: white;
  border-radius: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #88eac1;
  color: #123924;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: #d9f8ef;
  text-decoration: none;
  font-size: 13px;
}

.nav-links a.active {
  font-weight: 800;
}

.demo-page-content {
  margin-top: 24px;
  display: flex;
  gap: 24px;
}

.main-dashboard {
  flex: 1;
  min-width: 0;
}

.page-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-title-row h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.04;
}

.section-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--teal);
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #d8f6e8;
  color: #205b45;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 900;
}

.live-pill span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.metric-card {
  background: linear-gradient(180deg, #ffffff, #eefdf9);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #bddbd8;
}

.metric-title {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  color: #6a8487;
}

.metric-value {
  margin-top: 12px;
  font-size: 30px;
  font-weight: 900;
  color: var(--text-dark);
}

.green-text {
  color: #1b9464;
}

.metric-label {
  margin-top: 4px;
  font-size: 11px;
  color: #637c74;
}

.ledger-panel,
.visualizer-panel,
.activity-panel {
  margin-top: 20px;
  background: white;
  border-radius: 12px;
  border: 1px solid #bfd3d4;
  overflow: hidden;
}

.panel-head {
  background: #173d41;
  color: white;
  padding: 14px 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head.compact {
  background: #275b55;
}

.status-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 99px;
  background: #bdffca;
  color: #194b34;
}

.tx-list {
  padding: 12px 16px;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 6px;
  border-bottom: 1px solid #d5e3dc;
}

.tx-item:last-child {
  border-bottom: none;
}

.tx-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: #e6f4f2;
  border-radius: 50%;
  border: 1px solid #83b1b5;
  font-weight: 800;
}

.tx-title {
  font-weight: 800;
  font-size: 14px;
}

.tx-meta {
  font-size: 11px;
  color: #697d79;
  margin-top: 3px;
}

.tx-status {
  margin-left: auto;
  font-weight: 900;
  font-size: 10px;
  border-radius: 99px;
  padding: 5px 10px;
}

.tx-status.ok {
  background: #d9f9e3;
  color: #13774b;
}

.tx-status.pending {
  background: #fff2d1;
  color: #986900;
}

.right-dashboard {
  width: min(360px, 34%);
}

.visualizer-panel {
  padding-bottom: 20px;
}

.icon-round {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #aaffba;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a513a;
}

.network-map {
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: radial-gradient(circle, #eafcf4, #eef6ed);
}

.network-map:before {
  content: "";
  position: absolute;
  width: 260px;
  height: 150px;
  border-radius: 50%;
  border: 2px dashed #58beb5;
}

.node {
  position: relative;
  z-index: 1;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid #175b57;
  background: #eafcf3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.node span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #18bd78;
  border: 2px solid white;
  animation: pulse 1.8s infinite;
}

.node small {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #405d60;
}

.node-a { transform: translateY(-48px); }
.node-b { transform: translateY(36px); }
.node-c { transform: translateX(-12px); }
.node-d { transform: translateX(4px); }

.blockchain-bars {
  padding: 16px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
}

.bar {
  width: 20px;
  height: 34px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0d8a8e, #1aab87);
}

.bar.short { height: 20px; }
.bar.mid { height: 44px; }

.activity-panel {
  padding: 16px 20px;
}

.activity-panel .panel-head {
  background: transparent;
  color: #284d45;
  padding: 0 0 12px;
  border-bottom: 1px solid #bddbd8;
}

.flow-list {
  list-style: none;
  padding: 12px 0 0;
  margin: 0;
}

.flow-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #516d68;
}

.flow-dot {
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--green);
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 12px transparent; }
}
