.unified-api-demo {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 24px;
  margin: 20px 0;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.demo-header h3 {
  margin: 0 0 8px 0;
  font-size: 28px;
  font-weight: 700;
}

.demo-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin: 0;
}

.api-comparison {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  margin: 24px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  backdrop-filter: blur(10px);
}

.comparison-section {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
}

.comparison-section h4 {
  margin: 0 0 12px 0;
  font-size: 18px;
  font-weight: 600;
}

.code-example {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.code-example code {
  color: #f8f8f2;
}

.code-example .highlight {
  background: rgba(255, 255, 0, 0.2);
  padding: 2px 4px;
  border-radius: 3px;
  color: #ffd700;
  font-weight: 600;
}

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.divider-text {
  background: rgba(255, 215, 0, 0.9);
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.test-buttons {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.test-button {
  flex: 1;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.test-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.test-button:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.web3-button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}

.kit-button {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.clear-button {
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.clear-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.result-box {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 16px;
  margin: 12px 0;
  border-left: 4px solid;
}

.result-box.success {
  border-left-color: #10b981;
}

.result-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
}

.logs-section {
  margin: 24px 0;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
}

.logs-section h5 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.logs-container {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  padding: 12px;
}

.log-entry {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.5;
}

.log-entry:last-child {
  border-bottom: none;
}

.demo-footer {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
}

.key-point {
  background: rgba(255, 215, 0, 0.2);
  border-left: 4px solid #ffd700;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.key-point strong {
  color: #ffd700;
}

.benefits h5 {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 600;
}

.benefits ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.8;
}

.benefits li {
  margin: 6px 0;
}

/* Responsive */
@media (max-width: 768px) {
  .api-comparison {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .divider {
    transform: rotate(90deg);
  }

  .test-buttons {
    flex-direction: column;
  }

  .test-button {
    width: 100%;
  }
}
