:root {
  --bg-base:      #0F0F14;
  --bg-elevated:  #17171F;
  --bg-input:     #1E1E28;
  --border:       #262633;

  --primary:      #7C5CFC;
  --primary-hover:#6B4AF0;
  --danger:       #E5484D;

  --text-primary: #F5F5F7;
  --text-muted:   #8A8A99;
  --text-dim:     #5C5C6E;

  --success:      #22C55E;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-glow: 0 0 24px rgba(124, 92, 252, 0.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input { font-family: inherit; }

.input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input::placeholder { color: var(--text-dim); }

.input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 252, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary:active { transform: scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.dot-online { background: var(--success); box-shadow: 0 0 8px var(--success); }
.version-badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  opacity: 0.7;
}