:root {
  --hs-bg-top: #08111f;
  --hs-bg-bottom: #030712;
  --hs-panel: rgba(8, 15, 28, 0.72);
  --hs-panel-strong: rgba(12, 21, 38, 0.88);
  --hs-panel-border: rgba(148, 163, 184, 0.16);
  --hs-text-main: #e5eefc;
  --hs-text-muted: #9fb2cb;
  --hs-accent: #6ee7b7;
  --hs-accent-soft: rgba(110, 231, 183, 0.18);
  --hs-shadow: 0 18px 60px rgba(2, 6, 23, 0.42);
}

body {
  font-family: "Aptos", "Segoe UI Variable Text", "Trebuchet MS", sans-serif;
  color: var(--hs-text-main);
  background: #0a1220;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(148, 163, 184, 0.04) 0,
      rgba(148, 163, 184, 0.04) 1px,
      transparent 1px,
      transparent 32px
    ),
    repeating-linear-gradient(
      to right,
      rgba(148, 163, 184, 0.04) 0,
      rgba(148, 163, 184, 0.04) 1px,
      transparent 1px,
      transparent 32px
    );
  background-size: 32px 32px;
  opacity: 0.45;
}

#page_wrapper,
#inner_wrapper,
.container {
  background: transparent !important;
}

.container {
  max-width: 1500px;
  padding-bottom: 40px;
}

#information-widgets {
  margin-top: 28px;
  padding: 20px 24px 18px;
  border: 1px solid var(--hs-panel-border) !important;
  border-radius: 28px;
  background: rgba(9, 16, 29, 0.88);
  box-shadow: var(--hs-shadow);
  backdrop-filter: blur(18px);
}

#information-widgets::before {
  content: "Homeserver Control Center";
  display: block;
  width: 100%;
  margin-bottom: 14px;
  font-family: "Bahnschrift", "Aptos Display", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  letter-spacing: 0.04em;
  color: #f8fafc;
}

#widgets-wrap {
  gap: 16px;
}

.widget-container,
#information-widgets-right,
.information-widget-search {
  background: transparent;
}

.information-widget-resource,
.information-widget-search {
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(10px);
}

.resource-icon,
.information-widget-resource .text-theme-800,
.information-widget-resource .dark\:text-theme-200 {
  color: var(--hs-accent) !important;
}

.resource-usage {
  background: rgba(148, 163, 184, 0.14) !important;
}

.resource-usage > div {
  background: #6ee7b7 !important;
}

.information-widget-search input {
  height: 48px !important;
  padding-left: 16px;
  padding-right: 70px;
  border-radius: 16px !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.information-widget-search input::placeholder {
  color: var(--hs-text-muted) !important;
}

.information-widget-search button {
  right: 6px !important;
  bottom: 6px !important;
  border-radius: 12px !important;
  background: #6ee7b7 !important;
  color: #03111d !important;
}

#services {
  gap: 10px;
  margin-top: 18px;
}

.services-group {
  padding: 8px;
}

.service-group-name {
  padding: 6px 2px;
  font-family: "Bahnschrift", "Aptos Display", sans-serif;
  font-size: 1.02rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #dbeafe !important;
}

.services-list {
  gap: 10px;
}

.service-card {
  margin-bottom: 0 !important;
  padding: 6px !important;
  border: 1px solid var(--hs-panel-border);
  border-radius: 22px !important;
  background: rgba(10, 18, 32, 0.94) !important;
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.28);
  overflow: hidden;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease !important;
  animation: service-rise 420ms ease both;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.018);
  opacity: 1;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 183, 0.34);
  box-shadow: 0 22px 44px rgba(2, 6, 23, 0.34);
}

.service-icon {
  width: 56px !important;
  height: 56px;
  margin: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.service-icon img {
  width: 34px !important;
  height: 34px !important;
}

.service-title-text {
  min-height: 68px;
}

.service-name {
  padding: 14px 14px 14px 8px !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: var(--hs-text-main) !important;
}

.service-description {
  margin-top: 4px;
  font-size: 0.78rem !important;
  line-height: 1.45;
  color: var(--hs-text-muted) !important;
}

.bookmark,
.service-card,
.information-widget-resource,
.information-widget-search {
  backdrop-filter: blur(16px);
}

.services-group:nth-of-type(1) .service-card { animation-delay: 40ms; }
.services-group:nth-of-type(2) .service-card { animation-delay: 110ms; }
.services-group:nth-of-type(3) .service-card { animation-delay: 180ms; }

@keyframes service-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  #information-widgets {
    margin: 16px;
    padding: 18px;
    border-radius: 22px;
  }

  #information-widgets::before {
    margin-bottom: 10px;
    font-size: 1.35rem;
  }

  #services {
    margin: 8px 12px 0;
  }

  .services-group {
    flex-basis: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    padding-bottom: 20px;
  }

  #information-widgets {
    padding: 16px;
  }

  .information-widget-resource,
  .information-widget-search {
    width: 100%;
  }

  .service-card {
    border-radius: 18px !important;
  }

  .service-title-text {
    min-height: 64px;
  }
}
