* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  margin: 0;
  background: radial-gradient(circle at top, #2a1c3b, #0c0b14 70%);
  color: #f2f2f2;
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.topbar .back {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar .back:hover {
  color: #fff;
}

.topbar .brand {
  font-weight: 600;
}

.container {
  padding: 40px 20px 80px;
  max-width: 500px;
  margin: auto;
}

.hidden {
  display: none !important;
}

.step {
  animation: fadeIn 0.4s ease;
}

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

.step h1 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
}

.step .subtitle {
  font-size: 18px;
  text-align: center;
  opacity: 0.9;
  margin-bottom: 6px;
}

.step .helper-top {
  font-size: 14px;
  text-align: center;
  opacity: 0.6;
  margin-bottom: 28px;
}

.meta-stats {
  text-align: center;
  font-size: 14px;
  opacity: 0.7;
  margin: 0 0 4px;
}

.meta-updated {
  text-align: center;
  font-size: 12px;
  opacity: 0.5;
  margin: 0 0 20px;
}

.moods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.moods button {
  background: rgba(255,255,255,0.08);
  border: 2px solid transparent;
  border-radius: 14px;
  padding: 16px 12px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.moods button:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255, 111, 174, 0.4);
}

.moods button.active {
  background: linear-gradient(135deg, rgba(255, 111, 174, 0.3), rgba(122, 92, 255, 0.3));
  border-color: #ff6fae;
  box-shadow: 0 0 20px rgba(255, 111, 174, 0.3);
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff6fae, #7a5cff);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.submit-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 111, 174, 0.4);
}

.privacy-note {
  font-size: 12px;
  text-align: center;
  opacity: 0.5;
  margin-top: 16px;
}

.pulse {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.pulse-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  padding: 12px 14px;
  border-radius: 12px;
}

.pulse-row span {
  width: 120px;
  flex-shrink: 0;
  font-size: 14px;
}

.pulse-row .bar-wrap {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.pulse-row .bar {
  height: 100%;
  background: linear-gradient(90deg, #ff6fae, #7a5cff);
  border-radius: 4px;
  transition: width 0.6s ease;
}

.pulse-row strong {
  width: 40px;
  text-align: right;
  font-size: 14px;
  opacity: 0.9;
}

.loading-pulse {
  text-align: center;
  opacity: 0.6;
  font-size: 14px;
}

.pulse-empty {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
}

.pulse-empty p {
  margin: 0 0 8px;
  font-size: 15px;
}

.pulse-empty-sub {
  opacity: 0.6;
  font-size: 13px !important;
}

.reassurance {
  text-align: center;
  font-style: italic;
  font-size: 16px;
  opacity: 0.8;
  margin-top: 28px;
  padding: 16px;
  background: rgba(255, 111, 174, 0.1);
  border-radius: 12px;
}

.how-it-works {
  margin-top: 24px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  overflow: hidden;
}

.how-it-works summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 500;
  opacity: 0.8;
}

.how-it-works summary:hover {
  opacity: 1;
}

.how-it-works ul {
  padding: 0 16px 16px 32px;
  margin: 0;
  opacity: 0.7;
  font-size: 14px;
}

.how-it-works li {
  margin-bottom: 6px;
}

.ai-insight {
  margin-top: 24px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(255, 111, 174, 0.1));
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 12px;
}

.ai-insight p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}

.cta-section {
  margin-top: 36px;
  text-align: center;
}

.telegram-btn {
  display: inline-block;
  padding: 16px 32px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff6fae, #7a5cff);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.2s ease;
}

.telegram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 111, 174, 0.4);
}

.cta-sub {
  font-size: 13px;
  opacity: 0.5;
  margin-top: 12px;
}
