/* Global */
body {
  margin: 0;
  font-family: 'Arial', sans-serif;
  background: #0b0c1c url('https://i.ibb.co/4RYZgD3/space-bg.jpg') no-repeat center center fixed;
  background-size: cover;
  color: white;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 1.5rem;
  margin: 0;
}

header h1 span {
  font-weight: 400;
  font-size: 1rem;
  color: #aaa;
}

header .header-right span {
  margin-left: 20px;
}

/* Collections */
.collections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  padding: 20px;
}

.collection {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
}

.collection:hover {
  transform: scale(1.05);
  background: rgba(255,255,255,0.15);
}

/* Charts */
.charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.chart-box {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
  height: 300px; /* фиксированная высота для всех графиков */
}

.chart-box canvas {
  width: 100% !important;
  height: 100% !important;
}

/* Simulators */
.simulators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.simulator {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
}

/* Buttons and Inputs */
button {
  background: #5c67f2;
  border: none;
  color: white;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  border-radius: 5px;
}

button:hover {
  background: #7a83ff;
}

input, select {
  padding: 8px;
  margin-top: 10px;
  width: 100%;
  border-radius: 5px;
  border: none;
}

/* Mobile */
@media (max-width: 768px){
  header {
    flex-direction: column;
    text-align: center;
  }

  header .header-right span {
    display: block;
    margin: 5px 0 0 0;
  }
}