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

:root {
  --bg: oklch(0.12 0.02 145);
  --fg: oklch(0.98 0 0);
  --card: oklch(0.16 0.025 145);
  --primary: oklch(0.85 0.25 145);
  --primary-fg: oklch(0.12 0.02 145);
  --primary-20: color-mix(in srgb, oklch(0.85 0.25 145) 20%, transparent);
  --primary-50: color-mix(in srgb, oklch(0.85 0.25 145) 50%, transparent);
  --muted: oklch(0.22 0.03 145);
  --muted-fg: oklch(0.65 0.02 145);
  --border: oklch(0.28 0.04 145);
  --destructive: oklch(0.55 0.2 25);
  --destructive-20: color-mix(in srgb, oklch(0.55 0.2 25) 20%, transparent);
  --radius: 0.75rem;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 28rem;
  margin: 0 auto;
}

/* Экраны */
.screen { display: flex; flex-direction: column; padding: 1rem; min-height: 100vh; }
.screen[hidden] { display: none !important; }
.screen-center { align-items: center; justify-content: center; gap: 1rem; }

/* Карточка */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.card-status { border-width: 2px; }
.card-status.active { border-color: var(--primary-50); background: rgba(74, 222, 128, 0.05); }

.status-row { display: flex; align-items: center; justify-content: space-between; }
.status-left { display: flex; align-items: center; gap: 0.75rem; }

.status-icon-wrap {
  padding: 0.5rem;
  border-radius: 0.75rem;
  background: var(--muted);
  display: flex;
}

.status-icon-wrap.active { background: var(--primary-20); }
.status-icon-wrap.active .icon { color: var(--primary); }

.status-title { font-weight: 600; font-size: 0.95rem; color: var(--muted-fg); }
.status-title.active { color: var(--primary); }

/* Бейджи */
.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-online { background: var(--primary-20); color: var(--primary); }
.badge-offline { background: var(--destructive-20); color: var(--destructive); }

/* Орб */
.orb-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 0.5rem 0;
}

.orb-container {
  position: relative;
  width: 18rem;
  height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.orb-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orb-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-core-inner {
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  position: absolute;
  background: radial-gradient(circle at 30% 30%, rgba(10,30,20,0.95) 0%, rgba(5,20,12,0.98) 50%, rgba(2,10,6,1) 100%);
  box-shadow:
    inset 0 0 60px rgba(0,0,0,0.8),
    0 0 40px rgba(0,255,106,0.15),
    0 0 80px rgba(16,185,129,0.1);
}

.orb-core-inner::after {
  content: '';
  position: absolute;
  inset: 0.5rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0,255,106,0.05) 100%);
}

.orb-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;
}

.orb-number {
  font-size: 3rem;
  font-weight: 700;
  color: #00ff6a;
  text-shadow: 0 0 20px rgba(0,255,106,0.5);
  letter-spacing: -0.02em;
}

.orb-label {
  font-size: 0.75rem;
  margin-top: 0.125rem;
  color: rgba(0,255,106,0.7);
  text-shadow: 0 0 10px rgba(0,255,106,0.3);
}

.orb-outer-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, transparent 40%, rgba(0,255,106,0.05) 60%, transparent 70%);
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Пилюля под орбом */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.pill-muted { background: var(--muted); color: var(--muted-fg); }
.pill-primary { background: var(--primary-20); color: var(--primary); }

/* Кнопки */
.btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 1rem;
  transition: opacity 0.15s;
}
.btn:active { opacity: 0.8; }

.btn-primary {
  width: 100%;
  height: 3.5rem;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
}

.btn-hint { margin-left: auto; font-size: 0.875rem; opacity: 0.8; font-weight: 400; }

.btn-card {
  height: 3.5rem;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.notification-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  display: flex;
  height: 1.25rem;
  width: 1.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: var(--primary);
  color: var(--primary-fg);
  font-size: 0.625rem;
  font-weight: 700;
}

.btn-secondary {
  padding: 0.625rem 1.25rem;
  background: var(--muted);
  color: var(--fg);
  font-size: 0.875rem;
}

.btn-ghost {
  border: none;
  cursor: pointer;
  color: var(--fg);
  transition: opacity 0.15s;
}
.btn-ghost:active { opacity: 0.7; }

.btn-lg { border-radius: 1rem; }

/* Сетка кнопок */
.actions { display: flex; flex-direction: column; gap: 0.75rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

/* Иконки */
.icon { width: 1.25rem; height: 1.25rem; color: currentColor; flex-shrink: 0; }
.icon-sm { width: 1.25rem; height: 1.25rem; }
.icon-md { width: 1.5rem; height: 1.5rem; }
.icon-xl { width: 3rem; height: 3rem; }
.icon-destructive { color: var(--destructive); }

/* Утилиты */
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--muted-fg); font-size: 0.875rem; }

/* Спиннер */
.spinner {
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--muted);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
