:root {
  --bg: #06070b;
  --bg-soft: #0d1018;
  --panel: rgba(14, 18, 30, 0.82);
  --panel-strong: rgba(10, 13, 22, 0.94);
  --panel-elevated: rgba(20, 24, 38, 0.92);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-strong: rgba(255, 255, 255, 0.14);
  --text: #edf4ff;
  --muted: #98a3bf;
  --muted-2: #7f8aa6;
  --cyan: #1bd8ff;
  --cyan-2: #4aa6ff;
  --purple: #8a3ffc;
  --purple-2: #b679ff;
  --green: #00cb82;
  --yellow: #ffca3a;
  --red: #ff4269;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --blur: blur(18px);
  --sidebar-w: 284px;
  --topbar-h: 86px;
  --mobile-nav-h: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at left center, rgba(27, 216, 255, 0.18), transparent 34%),
    radial-gradient(circle at right center, rgba(138, 63, 252, 0.18), transparent 34%),
    linear-gradient(180deg, #05060a 0%, #070912 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.modal-open,
body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
}

.page-glow {
  position: fixed;
  inset: auto auto 0 0;
  width: 44vw;
  height: 44vw;
  max-width: 500px;
  max-height: 500px;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.page-glow-left {
  left: -12vw;
  top: 6vh;
  background: rgba(27, 216, 255, 0.22);
}

.page-glow-right {
  right: -12vw;
  top: 8vh;
  left: auto;
  background: rgba(138, 63, 252, 0.2);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 216, 255, 0.22);
  background: rgba(27, 216, 255, 0.08);
  color: #b7f4ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #07111a;
  background: linear-gradient(90deg, var(--cyan), #a6efff 52%, #d5b8ff 100%);
  box-shadow: 0 12px 28px rgba(27, 216, 255, 0.22);
}

.btn-secondary,
.btn-ghost,
.btn-dark {
  color: var(--text);
  border-color: var(--stroke);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost {
  background: transparent;
}

.btn-dark {
  background: rgba(5, 8, 14, 0.86);
}

.btn-danger {
  background: rgba(255, 66, 105, 0.16);
  border-color: rgba(255, 66, 105, 0.3);
  color: #ffd0dc;
}

.full {
  width: 100%;
}

.glass-card,
.panel,
.modal-card,
.admin-card,
.stat-card,
.user-card {
  border: 1px solid var(--stroke);
  background: linear-gradient(180deg, rgba(16, 21, 35, 0.92), rgba(10, 13, 22, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}

.overlay,
.backdrop,
.sheet-backdrop,
.profile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 9, 0.62);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 80;
}

.overlay.show,
.backdrop.show,
.sheet-backdrop.show,
.profile-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  padding: 13px 18px;
  border-radius: 16px;
  border: 1px solid rgba(27, 216, 255, 0.2);
  background: rgba(10, 14, 22, 0.95);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  visibility: hidden;
  transition: 0.22s ease;
  z-index: 120;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill.online,
.status-pill.active,
.status-pill.success {
  color: #c4ffe7;
  background: rgba(0, 203, 130, 0.14);
  border: 1px solid rgba(0, 203, 130, 0.24);
}

.status-pill.pending,
.status-pill.warning {
  color: #fff0b8;
  background: rgba(255, 202, 58, 0.14);
  border: 1px solid rgba(255, 202, 58, 0.24);
}

.status-pill.offline,
.status-pill.danger {
  color: #ffd0dc;
  background: rgba(255, 66, 105, 0.14);
  border: 1px solid rgba(255, 66, 105, 0.24);
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .container {
    width: min(100%, calc(100% - 20px));
  }

  .page-glow {
    width: 70vw;
    height: 70vw;
    filter: blur(70px);
  }
}
