/* Clean, open design - no boxes, just typography and space */

:root {
  --bg: #000;
  --text: #fff;
  --text-muted: #888;
  --accent-blue: #4f8bff;
  --accent-orange: #ff7a3c;
  --gradient: linear-gradient(135deg, #4f8bff 0%, #ff7a3c 100%);
  --border: #222;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* Layout */
.page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 60px 24px;
}

@media (min-width: 768px) {
  .page { padding: 80px 32px; }
}

/* Typography */
.title {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

/* Gradient text */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: #444; }

.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-row {
  display: flex;
  gap: 12px;
}

.btn-row .btn { flex: 1; }

/* Inputs */
.field { margin-bottom: 20px; }

.field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-muted);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent-blue);
}

.field input[readonly] { color: var(--text-muted); }

/* Checkbox options */
.options { display: flex; flex-direction: column; gap: 12px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.option:hover { border-color: #444; }

.option input { width: 20px; height: 20px; accent-color: var(--accent-blue); }

.option label { cursor: pointer; font-size: 16px; }

/* Progress dots */
.progress-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.dot.active { background: var(--gradient); }

/* User chip (login) */
.user-chip {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.user-chip img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.user-chip .name { font-weight: 600; font-size: 18px; }
.user-chip .email { font-size: 14px; color: var(--text-muted); }

.link { color: var(--text-muted); font-size: 14px; }
.link:hover { color: var(--text); }

.note {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
  border-left: 2px solid var(--border);
  padding-left: 12px;
}

/* Header bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.topbar-title { font-size: 18px; font-weight: 600; }

/* Chat / conversation */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  max-height: 50vh;
  overflow-y: auto;
}

.msg { display: flex; }
.msg.user { justify-content: flex-end; }

.bubble {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.msg.user .bubble {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg.assistant .bubble {
  background: #111;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

/* Progress bar */
.progress-track {
  height: 4px;
  background: #1a1a1a;
  border-radius: 2px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient);
  width: 0%;
  transition: width 0.3s ease;
}

/* Mode toggle */
.mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mode-tab {
  flex: 1;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.mode-tab.active {
  color: var(--text);
  border-color: var(--accent-blue);
}

/* Controls stack */
.controls-stack { display: flex; flex-direction: column; gap: 12px; }
.controls-stack.hidden { display: none; }

.btn-record { background: var(--gradient); color: #fff; }
.btn-record.recording { background: #dc2626; }

/* Loading overlay */
.loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
}

.loading-overlay.active { display: flex; }
.loading-overlay .title { font-size: 20px; }
.loading-overlay .subtitle { font-size: 14px; color: var(--text-muted); }

/* Recommendations */
.rec-list { display: flex; flex-direction: column; gap: 32px; }

.rec {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.rec:last-child { border-bottom: none; }

.rec-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.rec-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: #111;
}

.rec-avatar img { width: 100%; height: 100%; object-fit: cover; }

.rec-name { font-size: 20px; font-weight: 600; }
.rec-meta { font-size: 14px; color: var(--text-muted); }

.rec-bio {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.rec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tag {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 12px;
  color: var(--text-muted);
}

.rec-reasons {
  margin-bottom: 20px;
}

.rec-reasons-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.rec-reason {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.rec-reason::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* Action buttons row */
.actions { display: flex; gap: 10px; }

.action {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  border: none;
}

.action.pass {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.action.pass:hover { border-color: #444; }

.action.message {
  background: var(--gradient);
  color: #fff;
}

.action.save {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.action.save:hover { border-color: #444; }
.action.save.saved { border-color: var(--accent-orange); color: var(--accent-orange); }

/* Error */
.error {
  padding: 12px 16px;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 10px;
  color: #fca5a5;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Voice page layout */
.voice-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px;
}

@media (min-width: 768px) {
  .voice-page { padding: 40px 32px; }
}
