:root {
  --bg: #0f1117;
  --card: #1a1d27;
  --card-border: #2a2f3d;
  --text: #eef1f8;
  --muted: #8b93a7;
  --accent: #4f8cff;
  --accent-hover: #3d7aef;
  --success: #34d399;
  --radius: 16px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  padding: 16px;
  padding-bottom: 32px;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 4px 16px;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #7c5cff);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  flex-shrink: 0;
}

.header h1 {
  font-size: 20px;
  font-weight: 700;
}

.subtitle {
  color: var(--muted);
  font-size: 14px;
  margin-top: 2px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 18px;
}

.card h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.hint {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.status-card {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.status-dot.active {
  background: var(--success);
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}

.status-title {
  font-weight: 600;
  font-size: 16px;
}

.status-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

.sub-box {
  background: #12151e;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px;
  font-size: 12px;
  word-break: break-all;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
}

.btn {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.btn.primary {
  background: var(--accent);
  color: white;
}

.btn.primary:active {
  background: var(--accent-hover);
}

.server-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.server-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #12151e;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
}

.server-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 3px;
}

.server-meta {
  font-size: 12px;
  color: var(--muted);
}

.protocol-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(79, 140, 255, 0.15);
  color: var(--accent);
  padding: 4px 8px;
  border-radius: 6px;
}

.loading, .error {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 12px;
}

.error {
  color: #f87171;
}

.help ol {
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.help li {
  margin-bottom: 4px;
}
