.stage {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  min-height: 520px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
}

.counter-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.counter-container h2 {
  font-size: 18px;
  margin: 0;
  color: #cfd6e6;
  text-align: center;
}

.counter-display {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.counter-box {
  background: linear-gradient(135deg, #667eea 0%, #254a72 100%);
  border-radius: 20px;
  padding: 60px 80px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.counter-number {
  font-size: 96px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.counter-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}

.button-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 120px;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); */
}

.action-btn:active {
  /* transform: translateY(0); */
}

.btn-plus:hover {
  border-color: #10b981;
  /* background: rgba(16, 185, 129, 0.1); */
  color: #10b981;
}

.btn-minus:hover {
  border-color: #ef4444;
  /* background: rgba(239, 68, 68, 0.1); */
  color: #ef4444;
}

.btn-reset:hover {
  border-color: #254a72;
  /* background: rgba(139, 92, 246, 0.1); */
  color: #254a72;
}

.highlight-box {
  /* background: rgba(102, 126, 234, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  padding: 16px; */
  /* font-size: 14px; */
  /* color: #cfd6e6; */
  /* line-height: 1.6; */
  text-align: center;
}

.highlight-box strong {
  color: #fff;
}

.new-tab-btn {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #254a72 100%);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 16px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}

.new-tab-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #254a72 100%);
  opacity: 0.9;
}

.new-tab-btn:active {
  opacity: 0.9;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-section {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}

.panel-section h2 {
  font-size: 13px;
  margin: 0 0 12px 0;
  color: #cfd6e6;
  letter-spacing: 0.2px;
}

button {
  width: 100%;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  margin-bottom: 8px;
  font-size: 13px;
  transition: all 0.2s;
}

button:last-child {
  margin-bottom: 0;
}

button:hover {
  border-color: #3a82f6;
  background: rgba(58, 130, 246, 0.1);
}

button:active {
  /* transform: scale(0.98); */
}

.db-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-item {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item .label {
  color: var(--muted);
}

.info-item .value {
  color: var(--text);
  font-family: monospace;
}

.status {
  margin-top: 12px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 12px;
  font-family: monospace;
  color: var(--muted);
  text-align: center;
}

.log {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0f1218;
}

.log li {
  font-size: 11px;
  padding: 6px 8px;
  border-bottom: 1px solid #222;
  color: #ccc;
  font-family: monospace;
}

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

.info-section {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.2);
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
}

.feature-icon {
  color: #10b981;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-text {
  flex: 1;
}

.feature-text strong {
  color: #cfd6e6;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}

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

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

  .counter-box {
    padding: 40px 50px;
  }

  .counter-number {
    font-size: 72px;
  }
}

@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
  }

  .action-btn {
    min-width: 100%;
  }

  .counter-box {
    padding: 30px 40px;
  }

  .counter-number {
    font-size: 60px;
  }
}
