/* ============================================================
   HELIOCASTLE — MOCKUP — vps
   Used by a card with class "mock mock-vps".
   ============================================================ */

/* ---------- mock: customized VPS (rack + terminal) ---------- */
.mock-vps { background: radial-gradient(80% 70% at 65% 18%, #0e1116, #06070a 75%); }
.vps-rack {
  position: absolute;
  top: 9%; right: 8%;
  width: 46%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0.85;
}
.vps-rack i {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 9px;
  border-radius: 3px;
  background: linear-gradient(180deg, #171a20, #0e1014);
  border: 1px solid rgb(var(--ink-rgb) / 0.07);
  box-shadow: 0 8px 18px rgb(var(--shadow-rgb) / calc(0.5 * var(--shadow-a)));
}
.vps-rack b {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgb(var(--accent-rgb) / 0.85);
  box-shadow: 0 0 7px rgb(var(--accent-rgb) / 0.7);
}
.vps-rack b:nth-child(2) { background: rgb(var(--ink-rgb) / 0.3); box-shadow: none; }
.vps-rack s {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgb(var(--ink-rgb) / 0.09);
}

.vps-term {
  position: absolute;
  left: 8%; bottom: 22%;
  width: 62%;
  background: #0b0d11;
  border: 1px solid rgb(var(--ink-rgb) / 0.09);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 26px 55px rgb(var(--shadow-rgb) / calc(0.7 * var(--shadow-a)));
}
.vps-bar {
  display: flex;
  gap: 5px;
  padding: 8px 10px;
  background: rgb(var(--ink-rgb) / 0.035);
  border-bottom: 1px solid rgb(var(--ink-rgb) / 0.06);
}
.vps-bar u { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--ink-rgb) / 0.16); }
.vps-bar u:first-child { background: rgb(var(--accent-rgb) / 0.7); }

.vps-lines { padding: 11px 12px 14px; }
.vps-lines span {
  position: relative;
  display: block;
  width: var(--w);
  height: 4px;
  border-radius: 2px;
  background: rgb(var(--ink-rgb) / 0.12);
  margin-bottom: 9px;
}
/* gold prompt caret before command lines */
.vps-lines .p::before {
  content: "";
  position: absolute;
  left: -9px; top: -1px;
  width: 5px; height: 6px;
  background: var(--gold);
}
.vps-lines .ok { background: rgb(var(--accent-rgb) / 0.55); }
.vps-lines .caret::after {
  content: "";
  position: absolute;
  right: -11px; top: -2px;
  width: 6px; height: 8px;
  background: var(--gold);
  animation: term-blink 1.4s steps(1) infinite;
}
@keyframes term-blink { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }

/* animation: commands run one after another, then the session resets.
   Uses opacity (not scaleX) so the gold prompt marker isn't distorted. */
.vps-lines span {
  opacity: 0;
  animation: term-run 7s ease-out infinite;
}
.vps-lines span:nth-child(1) { animation-delay: 0s; }
.vps-lines span:nth-child(2) { animation-delay: .55s; }
.vps-lines span:nth-child(3) { animation-delay: 1.1s; }
.vps-lines span:nth-child(4) { animation-delay: 1.65s; }
.vps-lines span:nth-child(5) { animation-delay: 2.2s; }
@keyframes term-run {
  0% { opacity: 0; transform: translateX(-5px); }
  6% { opacity: 1; transform: translateX(0); }
  88% { opacity: 1; transform: translateX(0); }
  95%, 100% { opacity: 0; transform: translateX(0); }
}
/* rack status LEDs pulse in sequence, like traffic moving through the stack */
.vps-rack b:first-child { animation: led-pulse 2.4s ease-in-out infinite; }
.vps-rack i:nth-child(2) b:first-child { animation-delay: .35s; }
.vps-rack i:nth-child(3) b:first-child { animation-delay: .7s; }
@keyframes led-pulse {
  0%, 100% { opacity: 0.35; box-shadow: 0 0 4px rgb(var(--accent-rgb) / 0.35); }
  50% { opacity: 1; box-shadow: 0 0 10px rgb(var(--accent-rgb) / 0.9); }
}
/* activity bar sweeping across each rack unit */
.vps-rack s {
  position: relative;
  overflow: hidden;
}
.vps-rack s::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgb(var(--accent-rgb) / 0.55), transparent);
  animation: rack-scan 3.6s linear infinite;
}
.vps-rack i:nth-child(2) s::after { animation-delay: .6s; }
.vps-rack i:nth-child(3) s::after { animation-delay: 1.2s; }
@keyframes rack-scan {
  0% { transform: translateX(-120%); }
  60%, 100% { transform: translateX(320%); }
}

/* ---------- mock: ecommerce ---------- */
