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

:root {
  --bg: #12060f;
  --card: #1f0f1b;
  --accent: #ff4d7d;
  --accent-soft: #ff85a8;
  --text: #f5e9f0;
  --muted: #a88b9d;
}

body {
  background: radial-gradient(1200px 800px at 50% -10%, #2a0f22, var(--bg));
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 720px;
  padding: 48px 24px;
  text-align: center;
}

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

.heart { color: var(--accent); margin-left: 6px; }

.tagline { color: var(--muted); margin: 10px 0 36px; }

/* Voice orb */
.orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: radial-gradient(circle at 35% 30%, var(--accent-soft), var(--accent) 60%, #7d1039);
  box-shadow: 0 0 60px rgba(255, 77, 125, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.orb.idle { opacity: 0.55; }
.orb.listening { animation: pulse 1.6s ease-in-out infinite; }
.orb.speaking { animation: pulse 0.7s ease-in-out infinite; box-shadow: 0 0 90px rgba(255, 77, 125, 0.6); }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

#status { color: var(--muted); min-height: 1.4em; margin-bottom: 24px; }

.controls { display: flex; gap: 12px; justify-content: center; margin-bottom: 28px; }

button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
button:hover { transform: translateY(-1px); filter: brightness(1.1); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: transparent; border: 1px solid var(--muted); color: var(--text); }

/* Transcript */
#transcript {
  text-align: left;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  padding: 10px 16px;
  border-radius: 16px;
  max-width: 85%;
  font-size: 0.95rem;
  line-height: 1.4;
}
.bubble.agent { background: var(--card); align-self: flex-start; }
.bubble.user { background: #3a1230; align-self: flex-end; }

/* Matches */
#matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.match-card {
  background: var(--card);
  border: 1px solid rgba(255, 77, 125, 0.2);
  border-radius: 18px;
  padding: 22px 18px;
  text-align: left;
}
.match-card .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #8a2be2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.match-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.match-card .meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 10px; }
.match-card .score {
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.match-card .shared { font-size: 0.85rem; color: var(--text); }
.match-card .bio { font-size: 0.85rem; color: var(--muted); margin-top: 10px; font-style: italic; }

.empty { color: var(--muted); padding: 40px 0; }

/* Auth */
.auth-box {
  max-width: 340px;
  margin: 24px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#phone-step, #code-step { display: flex; flex-direction: column; gap: 12px; }
.auth-box input {
  background: var(--card);
  border: 1px solid rgba(255, 77, 125, 0.3);
  border-radius: 999px;
  padding: 14px 20px;
  color: var(--text);
  font-size: 1.05rem;
  text-align: center;
  outline: none;
}
.auth-box input:focus { border-color: var(--accent); }
.error { color: #ff7b7b; font-size: 0.9rem; min-height: 1.2em; }
.signed-in { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }
.signed-in a { color: var(--accent-soft); }
