.vps-panel-demo {
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  color: #f0f6ff;
  background: #020719;
  box-shadow: 0 28px 72px rgba(1, 12, 35, .3);
  font-family: "Urbanist", Arial, sans-serif;
}

.vps-panel-demo button { font: inherit; }

.vps-panel-demo__bar {
  display: grid;
  min-height: 76px;
  padding: 15px 22px;
  border-bottom: 1px solid #1a2742;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 17px;
  background: #050b20;
}

.vps-panel-demo__lights { display: flex; gap: 7px; }
.vps-panel-demo__lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff4f5e; }
.vps-panel-demo__lights i:nth-child(2) { background: #f7d83d; }
.vps-panel-demo__lights i:nth-child(3) { background: #3edb5d; }

.vps-panel-demo__node { min-width: 0; }
.vps-panel-demo__node strong {
  display: block;
  overflow: hidden;
  color: #8491aa;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vps-panel-demo__bar > button,
.vps-panel-demo__os > button {
  min-height: 39px;
  padding: 9px 17px;
  border: 0;
  border-radius: 22px;
  color: #05213d;
  background: #19bae7;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.vps-panel-demo__bar > button:hover,
.vps-panel-demo__os > button:hover { background: #65dcf6; transform: translateY(-1px); }

.vps-panel-demo__body { display: grid; gap: 16px; padding: 28px 24px 20px; }
.vps-panel-demo__metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.vps-panel-demo__metric {
  --metric-color: #18bce8;
  display: flex;
  min-width: 0;
  min-height: 132px;
  padding: 13px 12px 14px;
  border: 1px solid #2a3856;
  border-radius: 14px;
  flex-direction: column;
  color: #f8fbff;
  background: linear-gradient(145deg, rgba(7, 15, 36, .96), rgba(2, 7, 25, .96));
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.vps-panel-demo__metric:hover,
.vps-panel-demo__metric:focus-visible {
  border-color: var(--metric-color);
  background: #09142d;
  transform: translateY(-2px);
  outline: 0;
}

.vps-panel-demo__metric--cpu { --metric-color: #16bce9; }
.vps-panel-demo__metric--ram { --metric-color: #43d56d; }
.vps-panel-demo__metric--nvme { --metric-color: #d625cc; }
.vps-panel-demo__metric--bandwidth { --metric-color: #f5ad28; }

.vps-panel-demo__metric-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.vps-panel-demo__metric-icon {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 7px;
  flex: 0 0 29px;
  place-items: center;
  background: var(--metric-color);
}

.vps-panel-demo__metric-icon img { width: 18px; height: 18px; object-fit: contain; }
.vps-panel-demo__metric--bandwidth .vps-panel-demo__metric-icon img { width: 17px; height: 17px; }

.vps-panel-demo__metric-label,
.vps-panel-demo__metric strong,
.vps-panel-demo__metric small,
.vps-panel-demo__metric-track { display: block; }

.vps-panel-demo__metric-label {
  overflow: hidden;
  color: #8e9ab0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vps-panel-demo__metric strong {
  margin-top: 9px;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vps-panel-demo__metric-track { height: 4px; margin-top: 13px; overflow: hidden; border-radius: 3px; background: #202a42; }
.vps-panel-demo__metric-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--metric-color); transition: width .75s cubic-bezier(.22, 1, .36, 1); }

.vps-panel-demo__metric small {
  margin-top: 8px;
  overflow: hidden;
  color: #7d8aa2;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vps-panel-demo__metric.is-testing { animation: vps-metric-pulse .85s ease-in-out infinite alternate; }
@keyframes vps-metric-pulse { to { filter: brightness(1.22); } }

.vps-panel-demo__os {
  display: flex;
  min-height: 92px;
  padding: 17px 20px;
  border: 1px solid #2a3856;
  border-radius: 14px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(3, 9, 26, .78);
}

.vps-panel-demo__os > div { display: grid; gap: 4px; }
.vps-panel-demo__os strong { color: #fff; font-size: 18px; font-weight: 700; }
.vps-panel-demo__os small { color: #8996ad; font-size: 13px; line-height: 1.35; }

.vps-panel-demo__terminal {
  display: block;
  min-height: 142px;
  width: 100%;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid #2a3856;
  border-radius: 14px;
  color: #edf6ff;
  background: #020611;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 12px;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}

.vps-panel-demo__terminal:hover,
.vps-panel-demo__terminal:focus-visible { border-color: #27bce8; background: #030a18; outline: 0; }
.vps-panel-demo__terminal-comment,
.vps-panel-demo__terminal-command,
.vps-panel-demo__terminal-output { display: block; }
.vps-panel-demo__terminal-comment { color: #7d899f; }
.vps-panel-demo__terminal-command { display: flex; min-height: 1.65em; color: #22c1ee; white-space: nowrap; }
.vps-panel-demo__terminal-command i { display: inline-block; flex: 0 0 1px; width: 1px; height: 1em; margin: .28em 0 0 .12em; background: #8beaff; animation: vps-terminal-cursor .8s steps(1, end) infinite; }
.vps-panel-demo__terminal-output { color: #eff6ff; white-space: pre-line; }
@keyframes vps-terminal-cursor { 0%, 48% { opacity: 1; } 49%, 100% { opacity: 0; } }

.vps-panel-demo__footer {
  display: flex;
  min-height: 49px;
  padding: 11px 24px 14px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #7e8ba1;
  background: #020719;
  font-size: 10px;
  font-weight: 550;
}

.vps-panel-demo__footer span:last-child { color: #19bde9; }

.vps-panel-demo__toast {
  position: absolute;
  left: 50%;
  bottom: 55px;
  z-index: 5;
  max-width: 86%;
  padding: 8px 12px;
  border: 1px solid rgba(25, 185, 234, .6);
  border-radius: 6px;
  color: #fff;
  background: rgba(6, 17, 39, .97);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .28);
  font-size: 13px;
  line-height: 1.3;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity .18s ease, transform .18s ease;
}

.vps-panel-demo__toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.vps-console {
  position: fixed;
  inset: 0;
  width: min(620px, calc(100vw - 32px));
  max-height: min(520px, calc(100vh - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid #23314d;
  border-radius: 8px;
  color: #dcecff;
  background: #030817;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .55);
}

.vps-console::backdrop { background: rgba(1, 7, 20, .7); backdrop-filter: blur(3px); }
.vps-console__bar,
.vps-console__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; border-bottom: 1px solid #1d2942; font-size: 14px; font-weight: 700; }
.vps-console__bar button { width: 30px; height: 30px; padding: 0; border: 1px solid #31405d; border-radius: 4px; color: #fff; background: #101a30; font-size: 22px; line-height: 1; }
.vps-console__screen { min-height: 240px; padding: 22px; color: #76e5ff; background: #020611; font: 14px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-line; }
.vps-console__footer { border-top: 1px solid #1d2942; border-bottom: 0; color: #94a5bf; font-size: 12px; font-weight: 500; }
.vps-console__footer span { display: flex; align-items: center; gap: 7px; }
.vps-console__footer i { width: 8px; height: 8px; border-radius: 50%; background: #35d878; box-shadow: 0 0 0 4px rgba(53, 216, 120, .12); }
.vps-console__footer button { padding: 9px 13px; border: 0; border-radius: 5px; color: #061127; background: #19b9ea; font-size: 12px; font-weight: 800; }

@media (max-width: 1199px) {
  .vps-panel-demo__body { padding: 20px 17px 16px; }
  .vps-panel-demo__metrics { gap: 9px; }
  .vps-panel-demo__metric { min-height: 123px; padding: 11px 9px 12px; }
  .vps-panel-demo__metric-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .vps-panel-demo__metric-icon img { width: 16px; height: 16px; }
  .vps-panel-demo__metric-label { font-size: 10px; }
  .vps-panel-demo__metric strong { font-size: 15px; }
}

@media (max-width: 767px) {
  .vps-panel-demo { border-radius: 15px; }
  .vps-panel-demo__bar { min-height: 58px; padding: 10px 14px; grid-template-columns: auto 1fr; }
  .vps-panel-demo__bar > button { display: none; }
  .vps-panel-demo__node strong { font-size: 12px; }
  .vps-panel-demo__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vps-panel-demo__metric { min-height: 108px; }
  .vps-panel-demo__os { min-height: 78px; padding: 13px 14px; }
  .vps-panel-demo__os strong { font-size: 15px; }
  .vps-panel-demo__os small { font-size: 10px; }
  .vps-panel-demo__terminal { min-height: 120px; padding: 14px; font-size: 10px; }
  .vps-panel-demo__footer { padding: 10px 14px 13px; font-size: 9px; }
}

@media (max-width: 575px) {
  .vps-panel-demo__body { gap: 10px; padding: 11px; }
  .vps-panel-demo__metrics { gap: 7px; }
  .vps-panel-demo__metric { min-height: 101px; padding: 9px; }
  .vps-panel-demo__metric-heading { gap: 6px; }
  .vps-panel-demo__metric-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .vps-panel-demo__metric-icon img { width: 15px; height: 15px; }
  .vps-panel-demo__metric-label { font-size: 10px; }
  .vps-panel-demo__metric strong { margin-top: 6px; font-size: 14px; }
  .vps-panel-demo__metric-track { margin-top: 8px; }
  .vps-panel-demo__metric small { margin-top: 6px; font-size: 9px; }
  .vps-panel-demo__os { min-height: 73px; padding: 11px; gap: 8px; }
  .vps-panel-demo__os > button { padding: 7px 10px; font-size: 10px; }
  .vps-panel-demo__terminal { min-height: 112px; font-size: 9px; }
  .vps-panel-demo__footer { font-size: 8px; }
  .vps-console__screen { min-height: 200px; padding: 17px; font-size: 12px; }
  .vps-console__footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .vps-panel-demo__bar > button,
  .vps-panel-demo__os > button,
  .vps-panel-demo__metric,
  .vps-panel-demo__metric-track i,
  .vps-panel-demo__terminal,
  .vps-panel-demo__toast { animation: none; transition: none; }
  .vps-panel-demo__terminal-command i { animation: none; }
}
