:root {
  --hub-ink: #f4f7ff;
  --hub-muted: #9eabc1;
  --hub-line: rgba(148, 163, 184, 0.14);
  --hub-panel: rgba(18, 27, 46, 0.68);
  --hub-cyan: #44d7e8;
  --hub-blue: #5b7cfa;
  --hub-violet: #8b5cf6;
}

html.dark body {
  color: var(--hub-ink);
  background:
    radial-gradient(circle at 14% 6%, rgba(45, 117, 255, 0.16), transparent 30rem),
    radial-gradient(circle at 88% 20%, rgba(112, 75, 224, 0.14), transparent 34rem),
    linear-gradient(145deg, #08101f 0%, #0b1324 48%, #0c1426 100%) !important;
}

html:not(.dark) body {
  color: #172238;
  background:
    radial-gradient(circle at 14% 4%, rgba(65, 156, 255, 0.14), transparent 31rem),
    radial-gradient(circle at 88% 16%, rgba(129, 94, 246, 0.1), transparent 34rem),
    linear-gradient(145deg, #f7faff 0%, #edf3fb 52%, #f5f7fc 100%) !important;
}

html.dark body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

html:not(.dark) body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(80, 105, 145, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 105, 145, 0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 76%);
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

#inner_wrapper {
  scrollbar-color: rgba(91, 124, 250, 0.45) transparent;
}

#information-widgets {
  max-width: 1440px;
  margin: 0 auto !important;
  padding: 24px 32px 0;
  color: var(--hub-muted);
}

#widgets-wrap > div {
  gap: 14px;
}

#information-widgets .resource-usage,
#information-widgets-right > div {
  border: 1px solid var(--hub-line);
  border-radius: 999px;
  background: rgba(9, 17, 32, 0.48);
  backdrop-filter: blur(14px);
}

html:not(.dark) #information-widgets {
  color: #53627a;
}

html:not(.dark) #information-widgets .resource-usage,
html:not(.dark) #information-widgets-right > div {
  border-color: rgba(87, 107, 143, 0.14);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(70, 91, 130, 0.06);
}

#syc-hub-hero {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  width: calc(100% - 64px);
  max-width: 1376px;
  min-height: 390px;
  margin: 22px auto 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(120deg, rgba(18, 30, 53, 0.94), rgba(14, 23, 41, 0.74)),
    radial-gradient(circle at 85% 30%, rgba(68, 215, 232, 0.2), transparent 35%);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
  isolation: isolate;
}

.hub-hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 58px 64px;
}

.hub-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #a9b9d4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.hub-eyebrow span {
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--hub-cyan), var(--hub-blue));
  box-shadow: 0 0 12px var(--hub-cyan);
}

.hub-hero-content h1 {
  margin: 0;
  color: #f8fbff;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.hub-hero-content h1 strong {
  color: transparent;
  background: linear-gradient(92deg, #82e6ef 0%, #8ca4ff 50%, #b99aff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-weight: 650;
}

.hub-hero-content > p {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--hub-muted);
  font-size: 16px;
  line-height: 1.8;
}

.hub-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 32px;
}

.hub-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(131, 226, 239, 0.3);
  border-radius: 12px;
  color: #06131d;
  background: linear-gradient(135deg, #80e7ef, #7f9cff);
  box-shadow: 0 12px 35px rgba(68, 160, 232, 0.22);
  font-size: 14px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hub-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(68, 160, 232, 0.32);
}

.hub-primary-action svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(159, 177, 207, 0.22);
  border-radius: 12px;
  color: #b6c2d6;
  background: rgba(9, 19, 35, 0.42);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.hub-theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 200, 229, 0.44);
  background: rgba(23, 40, 67, 0.72);
}

.hub-theme-toggle:focus-visible {
  outline: 3px solid rgba(91, 124, 250, 0.32);
  outline-offset: 3px;
}

.hub-theme-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hub-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #9dabc1;
  font-size: 13px;
}

.hub-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #40dfa0;
  box-shadow: 0 0 0 5px rgba(64, 223, 160, 0.1), 0 0 16px rgba(64, 223, 160, 0.7);
}

.hub-hero-visual {
  position: relative;
  z-index: 1;
  min-height: 360px;
}

.hub-core {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(122, 207, 239, 0.28);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(83, 151, 234, 0.22), rgba(86, 67, 173, 0.2));
  box-shadow: 0 0 70px rgba(71, 139, 221, 0.24), inset 0 0 30px rgba(150, 216, 255, 0.05);
  transform-origin: center;
  animation: hub-float 5s ease-in-out infinite;
}

.hub-core svg {
  width: 58px;
  fill: none;
  stroke: #99e8ef;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(91, 202, 232, 0.6));
}

.hub-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(128, 158, 219, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
}

.orbit-one { width: 245px; height: 245px; }
.orbit-two { width: 360px; height: 360px; border-style: dashed; opacity: 0.65; }

.hub-node {
  position: absolute;
  padding: 8px 13px;
  border: 1px solid rgba(147, 170, 213, 0.2);
  border-radius: 9px;
  color: #b9c6db;
  background: rgba(12, 23, 42, 0.82);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
  font-size: 12px;
}

.node-a { top: 18%; left: 18%; }
.node-b { top: 22%; right: 12%; }
.node-c { bottom: 18%; right: 17%; }
.node-d { bottom: 22%; left: 11%; }

.hub-hero-glow {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  filter: blur(2px);
}

.hub-hero-glow-a {
  top: -150px;
  right: 12%;
  width: 330px;
  height: 330px;
  background: rgba(71, 141, 255, 0.09);
}

.hub-hero-glow-b {
  right: -90px;
  bottom: -180px;
  width: 400px;
  height: 400px;
  background: rgba(132, 74, 220, 0.08);
}

html:not(.dark) #syc-hub-hero {
  border-color: rgba(86, 112, 158, 0.14);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(240, 246, 255, 0.88)),
    radial-gradient(circle at 85% 30%, rgba(68, 215, 232, 0.16), transparent 35%);
  box-shadow: 0 30px 80px rgba(74, 98, 140, 0.14), inset 0 1px rgba(255, 255, 255, 0.8);
}

html:not(.dark) .hub-eyebrow { color: #667590; }
html:not(.dark) .hub-hero-content h1 { color: #142139; }
html:not(.dark) .hub-hero-content > p { color: #5c6b83; }
html:not(.dark) .hub-status { color: #63718a; }
html:not(.dark) .hub-theme-toggle {
  color: #40516e;
  border-color: rgba(74, 102, 151, 0.18);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 22px rgba(70, 91, 130, 0.07);
}
html:not(.dark) .hub-theme-toggle:hover { background: #fff; }
html:not(.dark) .hub-core {
  border-color: rgba(64, 147, 198, 0.22);
  background: linear-gradient(145deg, rgba(125, 213, 235, 0.22), rgba(130, 112, 224, 0.14));
  box-shadow: 0 0 70px rgba(71, 139, 221, 0.14), inset 0 0 30px rgba(255, 255, 255, 0.4);
}
html:not(.dark) .hub-core svg { stroke: #3193b0; }
html:not(.dark) .hub-orbit { border-color: rgba(76, 109, 164, 0.18); }
html:not(.dark) .hub-node {
  color: #4d5f7d;
  border-color: rgba(87, 111, 153, 0.16);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 8px 25px rgba(65, 87, 126, 0.1);
}

#layout-groups {
  max-width: 1440px;
  margin: 0 auto 56px !important;
  padding: 0 32px;
  gap: 8px 0;
}

#layout-groups > div {
  margin-top: 28px !important;
}

.service-group-name {
  color: #eef4ff !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  letter-spacing: -0.01em;
}

html:not(.dark) .service-group-name { color: #1c2a43 !important; }

.service-group-name::before {
  content: "";
  width: 4px;
  height: 18px;
  margin-right: 10px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--hub-cyan), var(--hub-violet));
  box-shadow: 0 0 14px rgba(68, 215, 232, 0.35);
}

.service {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hub-line) !important;
  border-radius: 15px !important;
  background: linear-gradient(145deg, rgba(24, 35, 57, 0.78), rgba(15, 24, 42, 0.72)) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14) !important;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease !important;
}

.service::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(94, 215, 232, 0.45), transparent);
  opacity: 0;
  transition: opacity 180ms ease;
}

.service:hover {
  z-index: 5;
  transform: translateY(-3px);
  border-color: rgba(103, 187, 232, 0.28) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24), 0 0 30px rgba(68, 136, 224, 0.06) !important;
}

.service:hover::after { opacity: 1; }

html:not(.dark) .service {
  border-color: rgba(83, 105, 142, 0.13) !important;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 249, 255, 0.86)) !important;
  box-shadow: 0 12px 30px rgba(70, 91, 130, 0.09) !important;
}

html:not(.dark) .service:hover {
  border-color: rgba(66, 153, 205, 0.26) !important;
  box-shadow: 0 17px 38px rgba(70, 91, 130, 0.14) !important;
}

.service-icon {
  margin-left: 8px;
  color: #8ddde8 !important;
  filter: drop-shadow(0 0 10px rgba(68, 215, 232, 0.22));
}

.service-name {
  color: #edf3ff !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

.service-description {
  color: #91a0b8 !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

html:not(.dark) .service-icon { color: #438cae !important; }
html:not(.dark) .service-name { color: #22314b !important; }
html:not(.dark) .service-description { color: #65748b !important; }

#bookmarks { display: none !important; }
#footer { padding-top: 0 !important; opacity: 0.55; }

@keyframes hub-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-8px); }
}

@media (max-width: 900px) {
  #information-widgets { padding: 16px 18px 0; }
  #syc-hub-hero {
    grid-template-columns: 1fr;
    width: calc(100% - 36px);
    margin: 18px;
    min-height: 0;
  }
  .hub-hero-content { padding: 44px 34px 10px; }
  .hub-hero-visual { min-height: 270px; }
  .orbit-two { width: 300px; height: 300px; }
  #layout-groups { padding: 0 18px; }
}

@media (max-width: 600px) {
  #information-widgets-right { display: none; }
  #syc-hub-hero { border-radius: 20px; }
  .hub-hero-content { padding: 38px 24px 8px; }
  .hub-hero-content h1 { font-size: 36px; }
  .hub-hero-content > p { font-size: 14px; }
  .hub-actions { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
  .hub-status { flex-basis: 100%; }
  .hub-hero-visual { min-height: 245px; transform: scale(0.88); }
  #layout-groups { padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hub-core { animation: none; }
  .service, .hub-primary-action, .hub-theme-toggle { transition: none !important; }
}
