/* ===== Buttons, Terminal, Animations ===== */

.btn {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #022;
  border: none;
}

.btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.btn.active {
  color: var(--accent);
  border-color: rgba(110, 231, 183, 0.25);
}

.btn.support {
  color: #ff6b8a;
  border-color: rgba(255, 107, 138, 0.2);
}

.btn.support svg {
  width: 14px;
  height: 14px;
  fill: #ff6b8a;
  stroke: none;
  margin-right: 6px;
}

.btn.support:hover {
  color: #ff8fa8;
  border-color: rgba(255, 107, 138, 0.35);
}

.btn.primary:hover {
  opacity: 0.9;
  color: #022;
}

.btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  margin-right: 10px;
  vertical-align: middle;
  cursor: default;
}

/* Terminal */
.term {
  background: #05060a;
  border-radius: 10px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono",
    monospace;
  color: #c7f0e1;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.term .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

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

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.cmd {
  white-space: pre-wrap;
  font-size: 13px;
  word-break: break-all;
}

.prompt {
  color: #89f3d0;
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #89f3d0;
  vertical-align: middle;
  margin-left: 6px;
  animation: blink 1s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  animation: reveal 0.6s forwards;
}

.reveal.delay {
  animation-delay: 0.12s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll-to-top */
#scrollTopBtn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #021;
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

#scrollTopBtn.show {
  opacity: 1;
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 0.85;
}

#scrollTopBtn svg {
  width: 20px;
  height: 20px;
}
