:root {
  --layout-main-bg-color: rgba(2, 8, 18, 0.86);
  --layout-bg-color: #020711;
  --world-map-point-color: #22d3ee;
  --server-status-value-color: #8eeaff;
  --server-status-label-color: rgba(236, 248, 255, 0.86);
  --duration-color: #7dd3fc;
  --transfer-color: #f8e56a;
  --net-speed-in-color: #fca5a5;
  --net-speed-out-color: #93c5fd;
  --load-color: #a7f3d0;
  --process-color: #c4b5fd;
  --conn-tcp-color: #fda4af;
  --conn-udp-color: #bae6fd;
  --list-item-price-color: #f8e56a;
  --list-item-buy-link-color: #22d3ee;
}

.layout-group .layout-bg {
  background:
    radial-gradient(circle at 22% 18%, rgba(34, 211, 238, 0.16), transparent 28%),
    radial-gradient(circle at 76% 12%, rgba(34, 197, 94, 0.12), transparent 24%),
    radial-gradient(circle at 50% 108%, rgba(15, 23, 42, 0.85), transparent 48%),
    linear-gradient(180deg, #050814 0%, #08111f 44%, #03070f 100%) !important;
  background-size: 140% 140%, 120% 120%, 100% 100%, 100% 100% !important;
  animation: nebulaDrift 18s ease-in-out infinite alternate;
}

.layout-group .layout-main::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), rgba(0,0,0,0.05) 70%);
}

.layout-header {
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 14, 0.72) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.12);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

.layout-footer > div:first-child { display: none !important; }
.layout-footer {
  opacity: 0.78;
  text-shadow: 0 0 14px rgba(34, 211, 238, 0.35);
}

.index-container .scroll-container {
  gap: 20px !important;
  padding-top: 18px !important;
}

.world-map-box {
  min-height: 230px;
  margin: 4px auto 10px;
  filter: drop-shadow(0 0 26px rgba(34, 211, 238, 0.12));
}

.world-map-group {
  opacity: 0.94;
  transform: translateZ(0);
  animation: mapFloat 7s ease-in-out infinite;
}

.world-map-img {
  filter: saturate(1.25) contrast(1.12) brightness(0.9);
}

.world-map-point .point-block {
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.95), 0 0 26px rgba(34, 211, 238, 0.45);
  animation: pointPulse 1.8s ease-out infinite;
}

.world-map-point .point-block::before,
.world-map-point .point-block::after {
  animation: pointRing 1.8s ease-out infinite;
}

.server-list-item {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(3, 7, 18, 0.94)) !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: cardIn 420ms ease both;
}

.server-list-item::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 0%, rgba(34, 211, 238, 0.10) 35%, rgba(34, 197, 94, 0.12) 50%, transparent 68%);
  transform: translateX(-120%);
  animation: cardSweep 5.5s ease-in-out infinite;
}

.server-list-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.50), 0 0 28px rgba(34, 211, 238, 0.12);
}

.server-info-group.server-list-item-head {
  background: rgba(2, 6, 14, 0.42) !important;
  border-bottom: 1px solid rgba(125, 211, 252, 0.10) !important;
}

.server-name {
  font-size: 15px !important;
  letter-spacing: 0 !important;
  text-shadow: 0 0 14px rgba(125, 211, 252, 0.28);
}

.core-mem {
  color: #ecfeff;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.32);
}

.server-list-item-main {
  gap: 14px !important;
  padding: 18px 12px 16px !important;
}

.server-list-item-status.type--donut {
  --server-status-size: 112px;
  --server-status-val-text-font-size: 22px;
  --server-status-label-font-size: 13px;
}

.donut-box-v-chart {
  filter: drop-shadow(0 0 9px rgba(34, 211, 238, 0.22));
  animation: donutBreathe 2.6s ease-in-out infinite;
}

.server-real-time-group {
  position: relative;
  gap: 6px;
  padding-top: 4px;
}

.server-real-time-item .item-value {
  font-weight: 700;
  text-shadow: 0 0 12px currentColor;
  transition: color 180ms ease, transform 180ms ease;
  animation: valueGlow 2.2s ease-in-out infinite;
}

.server-real-time--inSpeed .item-value,
.server-real-time--outSpeed .item-value,
.item-content-sub-item--speeds-in .item-value,
.item-content-sub-item--speeds-out .item-value {
  animation: trafficBlink 1.2s ease-in-out infinite;
}

.filter-group,
.server-list-warp {
  position: relative;
  z-index: 1;
}

@keyframes nebulaDrift {
  from { background-position: 0% 0%, 100% 0%, 50% 100%, 0 0; }
  to { background-position: 12% 8%, 88% 12%, 50% 96%, 0 0; }
}

@keyframes mapFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes pointPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.22); }
}

@keyframes pointRing {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0.72); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cardSweep {
  0%, 64% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes donutBreathe {
  0%, 100% { transform: scale(1); opacity: 0.96; }
  50% { transform: scale(1.025); opacity: 1; }
}

@keyframes valueGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.28); }
}

@keyframes trafficBlink {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-1px); filter: brightness(1.45); }
}

@media screen and (max-width: 900px) {
  .world-map-box { min-height: 160px; }
  .server-list-item-status.type--donut {
    --server-status-size: 96px;
    --server-status-val-text-font-size: 18px;
  }
}
