:root {
  --bg: #07090d;
  --bg-2: #0b0f16;
  --surface: #10151e;
  --surface-2: #151b26;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --text: #eef2f8;
  --muted: #94a0b5;
  --dim: #616b7d;
  --sun-1: #ffc45c;
  --sun-2: #ff5e3a;
  --ct: #4da3ff;
  --ok: #3ddc84;
  --bad: #ff5d5d;
  --radius: 14px;
  --font-display: "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--ct);
  outline-offset: 3px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font: 700 20px/1 var(--font-display);
  letter-spacing: 0.22em;
}

.logo img {
  width: 34px;
  height: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 600 16px/1 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn:hover svg {
  transform: translateX(-3px);
}

.btn--primary {
  background: linear-gradient(135deg, #5fb0ff, #2f6bff);
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(47, 107, 255, 0.7);
}

.btn--sun {
  background: linear-gradient(135deg, var(--sun-1), #ff8a2b);
  color: #1d1000;
  box-shadow: 0 10px 30px -10px rgba(255, 138, 43, 0.7);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.btn--sm {
  padding: 10px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dim);
  flex: none;
}

.dot--online {
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}

.dot--offline {
  background: var(--bad);
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 7px rgba(61, 220, 132, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 132, 0);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
