* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Ubuntu', sans-serif;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  color: #344A5E;
}

.bottom-content {
  height: 116px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ref {
  font-size: 14px;
  color: #0279C0;
  text-decoration: none;
}

.ref:hover {
  text-decoration: underline;
}

.commands-section {
  width: 100%;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

.commands-section h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: #344A5E;
  border-bottom: 2px solid #30BA9A;
  padding-bottom: 6px;
}

.commands-section h2:first-child {
  margin-top: 0;
}

.commands-section .intro {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #5a6b7d;
}

.commands-section table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.commands-section th,
.commands-section td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid #ECF2F6;
}

.commands-section th {
  background: #ECF2F6;
  font-weight: 500;
  color: #344A5E;
}

.commands-section tr:last-child td {
  border-bottom: none;
}

.commands-section tr:hover td {
  background: #f8fafc;
}

.commands-section .cmd {
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 13px;
  color: #0279C0;
}

.commands-section .link {
  color: #0279C0;
  text-decoration: none;
}

.commands-section .link:hover {
  text-decoration: underline;
}

.manual-step {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.manual-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: #30BA9A;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 14px;
}

.manual-step-content {
  flex: 1;
}

.manual-download {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 20px;
  background: #30BA9A;
  color: #fff !important;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
}

.manual-download:hover {
  background: #2aa88b;
  text-decoration: none !important;
}

.manual-addr {
  font-family: 'Consolas', monospace;
  background: #ECF2F6;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.whitelist-form-wrap {
  margin-top: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #ECF2F6;
}

.manual-step .whitelist-form-wrap {
  margin-bottom: 0;
}

.whitelist-form-wrap .intro {
  margin-bottom: 12px;
}

.whitelist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.whitelist-form input {
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: 'Consolas', monospace;
  min-width: 160px;
}

.whitelist-form input:focus {
  outline: none;
  border-color: #30BA9A;
  box-shadow: 0 0 0 2px rgba(48, 186, 154, 0.2);
}

.whitelist-form button {
  padding: 8px 20px;
  font-size: 14px;
  background: #30BA9A;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Ubuntu', sans-serif;
  font-weight: 500;
}

.whitelist-form button:hover {
  background: #2aa88b;
}

.whitelist-message {
  margin-top: 12px;
  font-size: 14px;
  padding: 10px;
  border-radius: 6px;
}

.whitelist-message.success {
  background: #d4edda;
  color: #155724;
}

.whitelist-message.error {
  background: #f8d7da;
  color: #721c24;
}

.commands-section .intro--footer {
  margin-top: 24px;
}

.server-status {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 32px;
  padding: 20px 24px;
  background: #ECF2F6;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  text-align: center;
}

.server-status h3 {
  font-size: 1rem;
  font-weight: 500;
  color: #5a6b7d;
  margin-bottom: 12px;
}

.server-status .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.server-status .status-online {
  background: #d4edda;
  color: #155724;
}

.server-status .status-offline {
  background: #f8d7da;
  color: #721c24;
}

.server-status .status-loading {
  background: #fff3cd;
  color: #856404;
}

.server-status .status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.server-status .status-online .status-dot { background: #28a745; }
.server-status .status-offline .status-dot { background: #dc3545; }
.server-status .status-loading .status-dot { background: #ffc107; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.server-status .players-count {
  font-size: 1.5rem;
  font-weight: 500;
  color: #344A5E;
  margin: 8px 0 4px;
}

.server-status .players-label {
  font-size: 12px;
  color: #7a8a9a;
  margin-bottom: 12px;
}

.server-status .players-list {
  max-height: 120px;
  overflow-y: auto;
  text-align: left;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #344A5E;
}

.server-status .players-list:empty::before {
  content: "Нет игроков онлайн";
  color: #9aabba;
}

.server-status .player-item {
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.server-status .player-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #30BA9A;
  flex-shrink: 0;
}

.server-status .server-addr {
  margin-top: 12px;
  font-family: 'Consolas', monospace;
  font-size: 13px;
  color: #0279C0;
  word-break: break-all;
}

.server-status .version {
  font-size: 12px;
  color: #9aabba;
  margin-top: 6px;
}
