* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(circle at top, #111a3a 0%, #0b0d1a 45%, #07080f 100%);
  color: #eef1ff;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stars {
  position: absolute;
  inset: -20% -10%;
  background-repeat: repeat;
  opacity: 0.8;
  animation: drift 80s linear infinite;
}

.stars-1 {
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 80% 40%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 60% 10%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.8), transparent);
  background-size: 240px 240px;
}

.stars-2 {
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(168, 204, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 70% 60%, rgba(200, 160, 255, 0.8), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 90% 20%, rgba(255, 255, 255, 0.7), transparent);
  background-size: 320px 320px;
  animation-duration: 120s;
  opacity: 0.6;
}

.stars-3 {
  background-image:
    radial-gradient(2px 2px at 15% 10%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(2px 2px at 85% 25%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 55% 75%, rgba(255, 255, 255, 0.8), transparent);
  background-size: 520px 520px;
  animation-duration: 160s;
  opacity: 0.4;
}

.nebula {
  position: absolute;
  inset: -15% -10%;
  background:
    radial-gradient(45% 45% at 25% 30%, rgba(120, 146, 255, 0.35), transparent 60%),
    radial-gradient(50% 50% at 75% 35%, rgba(173, 124, 255, 0.28), transparent 65%),
    radial-gradient(55% 55% at 50% 75%, rgba(90, 200, 255, 0.2), transparent 70%);
  filter: blur(10px);
  animation: nebula 30s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-6%, -4%, 0);
  }
}

@keyframes nebula {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  100% {
    transform: translate3d(2%, 1%, 0) scale(1.05);
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid #262a35;
  background: #0f1115;
  object-fit: cover;
}

h1 {
  margin: 0 0 6px 0;
  font-size: 30px;
  letter-spacing: 0.3px;
}

h2 {
  margin-top: 0;
  font-size: 20px;
}

p {
  margin: 0;
  color: #b8c4e6;
}

.card {
  background: rgba(16, 20, 36, 0.75);
  border: 1px solid rgba(95, 108, 150, 0.5);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.label {
  font-size: 16px;
  color: #a5b1d8;
  margin-bottom: 6px;
}

.value {
  font-size: 20px;
  font-weight: 600;
  color: #f2f6ff;
  word-break: break-all;
}

.mono {
  font-family: "Consolas", "JetBrains Mono", monospace;
}

.primary {
  background: linear-gradient(120deg, #5b8cff, #7b6cff 55%, #b85bff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(116, 108, 255, 0.35);
}

.primary:disabled {
  background: #2b3144;
  box-shadow: none;
  cursor: not-allowed;
}

.secondary {
  background: transparent;
  color: #cfd7f7;
  border: 1px solid rgba(148, 160, 210, 0.6);
  border-radius: 10px;
  padding: 12px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
}

.secondary.small {
  padding: 8px 14px;
  font-size: 14px;
}

.secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-actions {
  margin-top: 0;
}

@media (max-width: 720px) {
  .header {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .brand {
    justify-content: center;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
}

.hint {
  color: #a5b1d8;
  font-size: 13px;
}

.list {
  display: grid;
  gap: 12px;
}

.invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 8, 16, 0.65);
  backdrop-filter: blur(6px);
  z-index: 20;
}

.modal.hidden {
  display: none;
}

.modal-card {
  width: min(420px, 90vw);
  background: rgba(18, 24, 44, 0.92);
  border: 1px solid rgba(120, 140, 190, 0.45);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.modal-title {
  font-size: 20px;
  font-weight: 700;
  color: #f0f4ff;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 14px;
  color: #b8c4e6;
  margin-bottom: 14px;
}

.modal-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(120, 140, 190, 0.45);
  background: rgba(10, 14, 28, 0.9);
  color: #f2f6ff;
  font-size: 15px;
  outline: none;
}

.modal-input:focus {
  border-color: rgba(140, 170, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(120, 150, 255, 0.2);
}

.modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-error {
  margin-top: 10px;
  color: #f08a8a;
  font-size: 13px;
  min-height: 18px;
}

.notice {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(120, 140, 190, 0.5);
  background: rgba(18, 24, 44, 0.7);
}

.notice-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f4ff;
}

.notice-content {
  font-size: 16px;
  color: #c7d2f1;
  line-height: 1.6;
}

.list-item {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(95, 108, 150, 0.5);
  background: rgba(12, 16, 28, 0.8);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list.empty {
  color: #8d96b2;
  text-align: center;
  padding: 18px 0;
}

.iframe-wrap {
  width: 100%;
  height: 640px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #262a35;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #0f1115;
}
