:root {
  --color-brand: #7A2BC0;
  --color-brand-dark: #5B1F91;
  --color-bg: #0F0F13;
  --color-surface: #1A1A24;
  --color-text: #F0EFF5;
  --color-text-muted: #9491A7;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  letter-spacing: -0.02em;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
.btn {
  background-color: var(--color-brand);
  color: var(--color-text);
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  display: inline-block;
  text-align: center;
}

button:hover,
.btn:hover {
  background-color: var(--color-brand-dark);
  text-decoration: none;
}

input,
select {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-text-muted);
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-body);
  margin-bottom: 10px;
  width: 100%;
  box-sizing: border-box;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--color-brand);
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 20px;
  box-sizing: border-box;
}

/* Profile specific styles */
#profile-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 400px;
  margin-top: 40px;
  background-color: var(--color-surface);
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 60px;
  object-fit: cover;
  margin-bottom: 16px;
  background-color: var(--color-bg);
}

#profile-name {
  margin: 0 0 4px 0;
  font-size: 24px;
}

#profile-headline {
  margin: 0 0 16px 0;
  font-size: 16px;
  color: var(--color-text-muted);
  font-weight: 400;
}

#profile-chips {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

#profile-chips span:empty {
  display: none;
}

#profile-chips span {
  background-color: rgba(122, 43, 192, 0.15);
  color: var(--color-brand);
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 500;
}

#profile-bio {
  margin: 0 0 24px 0;
  font-size: 15px;
  color: var(--color-text);
}

#profile-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}

#profile-links a {
  background-color: var(--color-bg);
  padding: 12px;
  border-radius: 8px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s;
}

#profile-links a:hover {
  text-decoration: none;
  border-color: var(--color-brand);
}

/* Action buttons container */
.profile-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}

.profile-actions a {
  flex: 1;
}

#btn-open-app {
  background-color: var(--color-surface);
  border: 1px solid var(--color-brand);
  color: var(--color-text);
}

#btn-open-app:hover {
  background-color: rgba(122, 43, 192, 0.1);
}

/* Utility classes for messages */
.message-state {
  margin-top: 100px;
  font-size: 18px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Invite specific styles */
#invite-container {
  text-align: center;
  margin-top: 60px;
  background-color: var(--color-surface);
  padding: 40px;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
}

#invite-container h1 {
  font-size: 24px;
  margin-bottom: 24px;
}

#btn-open-invite {
  margin-bottom: 30px;
  width: 100%;
}

#invite-qr canvas {
  margin: 20px auto;
  border-radius: 8px;
  background-color: white;
  padding: 10px;
}