:root {
  color-scheme: dark;
  font-family: Inter, system-ui, sans-serif;
  background: #05080f;
  color: #eef2ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #05080f;
}

#bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) brightness(0.5);
  z-index: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(93, 127, 255, 0.18), transparent 32%),
              linear-gradient(180deg, rgba(5, 8, 15, 0.18), rgba(5, 8, 15, 0.9));
  z-index: 1;
  pointer-events: none;
}

main {
  position: relative;
  z-index: 2;
  width: min(92vw, 640px);
  padding: 2.25rem 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(4, 10, 25, 0.35),
              0 0 60px rgba(255, 255, 255, 0.06);
  text-align: center;
}

.avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 18px 54px rgba(0,0,0,0.18);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

p {
  margin: 1rem auto 1.8rem;
  max-width: 38rem;
  color: #c8d1ff;
  line-height: 1.7;
  font-size: 1rem;
}

.status-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem 1.25rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(15, 24, 45, 0.72);
  text-align: left;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.98rem;
}

.activity-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0.95rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-preview.has-art {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0.95rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-preview:not(.has-art) {
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.activity-preview:not(.has-art) .activity {
  margin: 0;
  min-height: 0;
}

.activity-preview.is-hidden {
  display: none;
}

.activity-art {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 18px;
  background: #111827;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}

.activity-art.is-hidden {
  display: none;
}

.activity-preview .activity {
  margin: 0;
  min-height: auto;
}

.label {
  color: #a5b4fc;
}

.value {
  font-weight: 600;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: #eef2ff;
  font-size: 0.95rem;
}

.online {
  background: rgba(52, 211, 153, 0.14);
  color: #a7f3d0;
}

.offline {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
}

.activity {
  color: #e0e7ff;
  font-size: 0.95rem;
  line-height: 1.6;
  min-height: 2.4rem;
}

.small-note {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: #8b95ac;
}

.login-btn {
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(93, 127, 255, 0.16);
  color: #a7f3d0;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: rgba(93, 127, 255, 0.26);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 8px 24px rgba(93, 127, 255, 0.2);
}

/* Login Modal */
.login-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.login-modal-content {
  background: linear-gradient(135deg, rgba(15, 24, 45, 0.95) 0%, rgba(20, 35, 60, 0.95) 100%);
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 28px 80px rgba(4, 10, 25, 0.5), 0 0 60px rgba(93, 127, 255, 0.1);
  width: min(90vw, 400px);
  backdrop-filter: blur(18px);
}

.login-modal-content h2 {
  margin: 0 0 1.5rem;
  color: #eef2ff;
  font-size: 1.8rem;
  text-align: center;
}

.login-modal-close {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 2rem;
  font-weight: bold;
  color: #a5b4fc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.login-modal-close:hover {
  color: #e0e7ff;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#login-form input {
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  color: #eef2ff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#login-form input::placeholder {
  color: #94a3b8;
}

#login-form input:focus {
  outline: none;
  background: rgba(255,255,255,0.1);
  border-color: rgba(93, 127, 255, 0.5);
  box-shadow: 0 0 12px rgba(93, 127, 255, 0.2);
}

.submit-btn {
  padding: 0.8rem 1.5rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, rgba(93, 127, 255, 0.3) 0%, rgba(167, 243, 208, 0.1) 100%);
  border: 1px solid rgba(167, 243, 208, 0.3);
  color: #a7f3d0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, rgba(93, 127, 255, 0.4) 0%, rgba(167, 243, 208, 0.15) 100%);
  border-color: rgba(167, 243, 208, 0.5);
  box-shadow: 0 8px 20px rgba(93, 127, 255, 0.25);
}

.login-error {
  color: #fca5a5;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2rem;
}

@media (max-width: 520px) {
  main {
    padding: 1.75rem 1.1rem;
  }
}

