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

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: #0f111f;
  color: #e0e4ff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.view {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.logo-wrap {
  background: #1a2744;
  border-radius: 16px;
  padding: 16px;
}

.app-title {
  font-size: 22px;
  font-weight: 700;
  color: #6571ff;
  letter-spacing: 0.5px;
}

.status-text {
  font-size: 13px;
  color: #8a90c0;
  min-height: 18px;
}

.hint-text {
  font-size: 13px;
  color: #8a90c0;
  line-height: 1.6;
}

.hint-text.small {
  font-size: 11px;
  color: #5a6080;
}

/* Pairing code */
.pairing-code-wrap {
  background: #1a2744;
  border: 2px solid #6571ff;
  border-radius: 12px;
  padding: 16px 32px;
}

.pairing-code {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 6px;
  color: #ffffff;
  font-family: "Courier New", monospace;
}

/* Connected */
.connected-badge {
  font-size: 13px;
  font-weight: 600;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: 20px;
  padding: 4px 14px;
}

.user-email {
  font-size: 12px;
  color: #6a70a0;
}

.open-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 24px;
  background: #6571ff;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.open-btn:hover { background: #7a84ff; }

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(101, 113, 255, 0.2);
  border-top-color: #6571ff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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