/* ═══════════════════════════════════════════════════
   User Profile Generator — Sci-Fi Tech Theme
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #06080d;
  --bg-secondary: #0c1017;
  --bg-card: #0f1319;
  --bg-card-hover: #141924;
  --bg-input: #0a0e15;
  --border-color: #1a2030;
  --border-glow: #00e5ff22;
  --text-primary: #e4e8ef;
  --text-secondary: #7a8599;
  --text-muted: #4a5568;
  --accent-cyan: #00e5ff;
  --accent-cyan-dim: #00e5ff44;
  --accent-purple: #b388ff;
  --accent-purple-dim: #b388ff44;
  --accent-green: #00e676;
  --accent-pink: #ff4081;
  --accent-orange: #ff6e40;
  --accent-yellow: #ffab00;
  --accent-blue: #448aff;
  --glow-cyan: 0 0 20px #00e5ff33, 0 0 40px #00e5ff11;
  --glow-purple: 0 0 20px #b388ff33, 0 0 40px #b388ff11;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans SC', system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Background Grid Effect ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    linear-gradient(90deg, #00e5ff03 1px, transparent 1px),
    linear-gradient(#00e5ff03 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, #00e5ff06 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, #b388ff06 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ─── Container ─── */
.app-container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
}

/* ─── Top Navigation ─── */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.nav-logo-icon {
  font-size: 1.5rem;
  color: var(--accent-cyan);
  line-height: 1;
}

.nav-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
  padding: 6px 0;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-cyan);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ─── Header ─── */
.app-header {
  text-align: center;
  padding: 40px 0 40px;
  position: relative;
}

.app-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--accent-cyan-dim);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #00e5ff08, #b388ff08);
  margin-bottom: 24px;
  position: relative;
  animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 1.5;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: var(--glow-cyan); }
  50% { box-shadow: var(--glow-purple); }
}

.app-title {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.app-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

/* ─── Mode Selection ─── */
.mode-selection {
  display: flex;
  gap: 16px;
  margin: 40px 0;
  justify-content: center;
}

.mode-card {
  flex: 1;
  max-width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mode-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--accent-cyan-dim));
  opacity: 0;
  transition: var(--transition);
}

.mode-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.mode-card:hover::before {
  opacity: 1;
}

.mode-card.detailed:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--glow-purple);
}

.mode-card.detailed::before {
  background: linear-gradient(135deg, transparent 50%, var(--accent-purple-dim));
}

.mode-card-content {
  position: relative;
  z-index: 1;
}

.mode-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.mode-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.mode-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mode-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mode-card:not(.detailed) .mode-badge {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
}

.mode-card.detailed .mode-badge {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
}

/* ─── Progress Bar ─── */
.progress-container {
  margin-bottom: 32px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-primary);
  padding: 16px 0;
  backdrop-filter: blur(10px);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-category {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
}

.progress-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.progress-track {
  width: 100%;
  height: 3px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 2px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  width: 7px;
  height: 7px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* ─── Category Navigation ─── */
.category-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
}

.category-nav::-webkit-scrollbar { display: none; }

.cat-nav-item {
  flex-shrink: 0;
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

.cat-nav-item:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.cat-nav-item.active {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.cat-nav-item.completed {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ─── Category Section ─── */
.category-section {
  animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
  padding: 20px 0;
}

.category-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  border: 1px solid;
  flex-shrink: 0;
}

.category-title-group {
  flex: 1;
}

.category-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.category-en {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.category-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  padding-left: 64px;
}

/* ─── Question Card ─── */
.question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  transition: var(--transition);
  position: relative;
}

.question-card:hover {
  border-color: #2a3448;
  background: var(--bg-card-hover);
}

.question-card.answered {
  border-color: #1a3a2a;
}

.question-card.optional .question-label::after {
  content: '可选';
  display: inline-block;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 400;
}

.question-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.1em;
}

.question-label {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.question-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ─── Input Styles ─── */
.answer-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  transition: var(--transition);
  outline: none;
}

.answer-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.answer-input::placeholder {
  color: var(--text-muted);
}

textarea.answer-input {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

/* ─── Select Options ─── */
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  line-height: 1.4;
}

.option-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

.option-btn.selected {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
}

.option-btn.multi.selected {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
  background: var(--accent-purple-dim);
}

.option-btn .check-mark {
  display: none;
  margin-right: 6px;
  font-size: 0.75rem;
}

.option-btn.selected .check-mark {
  display: inline;
}

/* ─── Range Slider ─── */
.range-container {
  padding: 8px 0;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.range-value {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  transition: var(--transition);
}

.range-track {
  position: relative;
  height: 48px;
  display: flex;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-dim);
  cursor: pointer;
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-cyan);
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 15px var(--accent-cyan-dim);
  cursor: pointer;
  border: none;
}

.range-dots {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  margin-top: -2px;
}

.range-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition);
}

.range-dot.active {
  background: var(--accent-cyan);
  box-shadow: 0 0 6px var(--accent-cyan);
}

/* ─── Tag Input ─── */
.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  min-height: 48px;
  align-items: center;
  cursor: text;
  transition: var(--transition);
}

.tag-input-container:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px var(--accent-cyan-dim);
}

.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-cyan-dim);
  border: 1px solid var(--accent-cyan);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--accent-cyan);
  animation: tagIn 0.2s ease-out;
}

@keyframes tagIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

.tag-remove {
  cursor: pointer;
  opacity: 0.6;
  font-size: 1rem;
  line-height: 1;
  transition: var(--transition);
}

.tag-remove:hover {
  opacity: 1;
}

.tag-input {
  flex: 1;
  min-width: 120px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
}

.tag-input::placeholder {
  color: var(--text-muted);
}

/* ─── Navigation Buttons ─── */
.nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  letter-spacing: 0.02em;
}

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

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #00b8d4);
  color: #000;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-cyan);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1));
  opacity: 0;
  transition: var(--transition);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-generate {
  background: linear-gradient(135deg, var(--accent-purple), #7c4dff);
  color: #fff;
  font-weight: 700;
}

.btn-generate:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow-purple);
}

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

/* ─── Result Page ─── */
.result-container {
  animation: fadeInUp 0.5s ease-out;
}

.result-header {
  text-align: center;
  padding: 40px 0;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 16px;
  animation: resultBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes resultBounce {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.result-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin: 24px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.md-preview {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 600px;
  overflow-y: auto;
  color: var(--text-secondary);
}

.md-preview h1 { color: var(--accent-cyan); font-size: 1.1rem; }
.md-preview h2 { color: var(--accent-purple); font-size: 0.95rem; margin-top: 16px; }
.md-preview strong { color: var(--text-primary); font-weight: 600; }
.md-preview em { color: var(--text-muted); font-style: italic; }
.md-preview blockquote {
  border-left: 2px solid var(--accent-cyan-dim);
  padding-left: 12px;
  margin: 8px 0;
  color: var(--text-secondary);
}

.result-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

/* ─── Completion Counter ─── */
.completion-ring {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  width: 56px;
  height: 56px;
}

.completion-ring svg {
  transform: rotate(-90deg);
}

.completion-ring circle {
  fill: none;
  stroke-width: 3;
}

.completion-ring .track {
  stroke: var(--border-color);
}

.completion-ring .fill {
  stroke: var(--accent-cyan);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.completion-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  z-index: 1000;
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: var(--glow-cyan);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ─── Loading ─── */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ─── Welcome/Intro ─── */
.welcome-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.feature-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.feature-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ─── Footer ─── */
.app-footer {
  text-align: center;
  padding: 40px 0 20px;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.app-footer a {
  color: var(--accent-cyan);
  text-decoration: none;
}

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .app-container { padding: 16px 14px 40px; }
  .top-nav { flex-direction: column; gap: 12px; padding: 12px 0; }
  .nav-links { gap: 16px; }
  .app-title { font-size: 1.5rem; }
  .mode-selection { flex-direction: column; align-items: center; }
  .mode-card { max-width: 100%; }
  .question-card { padding: 18px; }
  .category-desc { padding-left: 0; }
  .result-stats { gap: 20px; }
  .nav-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}

/* ─── Animations ─── */
.fade-enter {
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-in {
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ─── Hidden ─── */
.hidden { display: none !important; }

/* ─── Answer status dot ─── */
.answer-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  transition: var(--transition);
}

.answer-dot.filled {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}
