.admin-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 1px;
  margin: -34px 0 48px;
  padding: 1px;
  border: 1px solid #2b3039;
  border-radius: 16px;
  overflow: hidden;
  background: #2b3039;
  box-shadow: 0 18px 50px #0005;
}

.admin-tab {
  position: relative;
  min-height: 54px;
  border-radius: 0;
  background: #101217;
  color: #8d96a4;
  font-size: 13px;
  letter-spacing: .02em;
}

.admin-tab:hover {
  background: #181b21;
  color: #fff;
}

.admin-tab.active {
  background: #f4f6f8;
  color: #090a0c;
}

.admin-tab.active::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 7px;
  left: 18px;
  height: 2px;
  border-radius: 2px;
  background: #5865f2;
}

.admin-panel {
  min-height: 480px;
  padding-top: 4px;
}

#reviews-panel .account {
  grid-template-columns: 1fr 2fr auto;
}

.server-control-card {
  max-width: 760px;
  padding: 28px;
  border: 1px solid #2a3039;
  border-radius: 18px;
  background: linear-gradient(145deg, #15181d, #0d0f13);
  box-shadow: 0 24px 70px #0006;
}

.server-control-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #282d35;
}

.server-control-head > div {
  display: flex;
  align-items: center;
  gap: 11px;
}

.server-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3bd278;
  box-shadow: 0 0 18px #3bd278;
}

.server-dot.offline {
  background: #ff5964;
  box-shadow: 0 0 18px #ff5964;
}

.server-control-caption {
  color: #707986;
  font-size: 12px;
}

.server-control-card > p {
  color: #9aa3af;
  line-height: 1.6;
}

.server-control-card textarea {
  min-height: 105px;
  resize: vertical;
  border: 1px solid #303640;
  border-radius: 11px;
  background: #090b0e;
  color: #fff;
  padding: 14px;
  font: inherit;
}

.server-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.server-actions .danger {
  background: #3a171b;
  color: #ff8e96;
  border: 1px solid #67272e;
}

.server-actions .success {
  background: #153621;
  color: #78e7a1;
  border: 1px solid #245e38;
}

.server-actions button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (max-width: 700px) {
  .admin-tabs {
    grid-template-columns: 1fr;
    margin-top: -20px;
  }

  .admin-tab {
    min-height: 46px;
  }

  #reviews-panel .account {
    grid-template-columns: 1fr;
  }

  .server-control-card {
    padding: 20px;
  }

  .server-control-head,
  .server-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .server-actions button {
    width: 100%;
  }
}
