/* :: RACK CABINET (shared: homepage + web hosting plan grids) :: */
/* Sized like a plan card: fills the column, square corners, sharp lines. */
.rack-cabinet {
  height: 100%;
}
.rack-cabinet .cab {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: linear-gradient(90deg, #33349e 0%, #2a2b8f 55%, #232480 100%);
  border: 2px solid rgba(143, 144, 255, 0.5);
  border-radius: 8px; /* matches the plan cards, nothing more */
  padding: 22px 20px;
  overflow: hidden;
}

/* top & bottom panels */
.rack-cabinet .cab-top,
.rack-cabinet .cab-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.rack-cabinet .cab-top { padding-bottom: 16px; }
.rack-cabinet .cab-bottom { padding-top: 16px; }
.rack-cabinet .vents {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
}
.rack-cabinet .vents i {
  height: 3px;
  background: rgba(143, 144, 255, 0.45);
}
.rack-cabinet .vents i:last-child { opacity: 0.55; width: 70%; }
.rack-cabinet .cab-label {
  font-family: monospace;
  font-size: 12px;
  color: #c3d0ff;
  white-space: nowrap;
}
.rack-cabinet .cab-brand {
  font-size: 12px;
  font-weight: 600;
  color: #c3d0ff;
  white-space: nowrap;
}

/* door: dark interior, servers stacked inside, mesh on top */
.rack-cabinet .cab-door {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: #12134f;
  border: 1px solid rgba(143, 144, 255, 0.55);
  padding: 10px;
  overflow: hidden;
}

/* perforation overlay — grille the servers show through */
.rack-cabinet .mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(18, 19, 79, 0.55) 1.2px, transparent 1.3px);
  background-size: 6px 6px;
  pointer-events: none;
}

/* 1U / 2U servers: squared, sharp horizontal lines */
.rack-cabinet .srv {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #2c2d95 0%, #26277f 100%);
  border: 1px solid rgba(143, 144, 255, 0.4);
  border-top-color: rgba(195, 208, 255, 0.55); /* lit top edge, crisp */
  padding: 0 9px;
}
.rack-cabinet .srv.u1 { flex: 1 1 0; min-height: 24px; }
.rack-cabinet .srv.u2 { flex: 2 1 0; min-height: 48px; }

/* mounting rails: vertical screw strips at both ends */
.rack-cabinet .srv .rail {
  width: 5px;
  align-self: stretch;
  flex-shrink: 0;
  background-image: radial-gradient(rgba(195, 208, 255, 0.55) 1px, transparent 1.4px);
  background-size: 5px 8px;
  background-position: center;
}

/* faceplate: sharp horizontal drive-bay lines */
.rack-cabinet .srv .face {
  flex: 1 1 auto;
  align-self: stretch;
  margin: 5px 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(143, 144, 255, 0.4) 0 2px,
    transparent 2px 8px
  );
}
.rack-cabinet .srv.u1 .face { margin: 6px 0; }

/* one status LED per server — green, soft, steady rhythm */
.rack-cabinet .srv .led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: cab-led 1.6s steps(1, end) infinite;
}
.rack-cabinet .srv .led-1 { animation-delay: 0.7s; animation-duration: 1.9s; }
.rack-cabinet .srv .led-2 { animation-delay: 0.2s; animation-duration: 1.6s; }
.rack-cabinet .srv .led-3 { animation-delay: 1.1s; animation-duration: 2.3s; }
.rack-cabinet .srv .led-4 { animation-delay: 0.5s; animation-duration: 1.4s; }
.rack-cabinet .srv .led-5 { animation-delay: 1.6s; animation-duration: 2.1s; }
.rack-cabinet .srv .led-6 { animation-delay: 0.9s; animation-duration: 1.7s; }
.rack-cabinet .srv .led-7 { animation-delay: 0.3s; animation-duration: 2.5s; }
.rack-cabinet .srv .led-8 { animation-delay: 1.4s; animation-duration: 1.5s; }
.rack-cabinet .srv .led-9 { animation-delay: 0.6s; animation-duration: 2.0s; }
.rack-cabinet .srv .led-10 { animation-delay: 1.9s; animation-duration: 1.8s; }
.rack-cabinet .srv .led-11 { animation-delay: 0.1s; animation-duration: 2.2s; }
.rack-cabinet .srv .led-12 { animation-delay: 1.2s; animation-duration: 1.6s; }
.rack-cabinet .srv .led-13 { animation-delay: 0.8s; animation-duration: 2.4s; }
@keyframes cab-led {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.12; }
}

@media (max-width: 1199px) {
  .rack-cabinet { min-height: 420px; }
}

