.header {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.header h1 {
  margin: 0;
  font-size: 28px;
}

.status {
  text-align: center;
  color: #aaa;
  margin-bottom: 15px;
}

.grid {
  max-width: 700px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 12px;
}

.alloff {
  max-width: 700px;
  margin: 15px auto;
  padding: 0 12px;
}

.alloff button {
  width: 100%;
  height: 60px;
  border: none;
  border-radius: 14px;
  background: #9b0000;
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 98;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;

  overflow-y: auto;
  padding: 20px 0;
}

.modal-box {
  width: 90%;
  max-width: 500px;
  margin: 20px auto;
  background: #1a1a1a;
  padding: 20px;
  border-radius: 18px;

  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.modal-box h2 {
  text-align: center;
  margin-top: 0;
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}