* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: #0f0f14;
  color: #f2f2f2;
  min-height: 100vh;
}

.screen {
  display: none;
  padding: 24px;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}

.screen.active { display: block; }

h1 { font-size: 28px; margin-bottom: 4px; text-align: center; }
h2 { font-size: 20px; }
h3 { font-size: 16px; margin-bottom: 12px; }

.subtitle {
  text-align: center;
  color: #999;
  margin-bottom: 32px;
}

.auth-box, .onboarding-box, .edit-profile-box {
  margin-top: 15vh;
}

.field-label {
  display: block;
  font-size: 13px;
  color: #999;
  margin-bottom: 6px;
}

.input-field {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #333;
  background: #1a1a22;
  color: #fff;
  font-size: 15px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
  cursor: pointer;
}

.checkbox-label input {
  width: 16px;
  height: 16px;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  color: white;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
  margin-top: 8px;
}

.btn-primary:active { opacity: 0.85; }

.btn-link {
  background: none;
  border: none;
  color: #a29bfe;
  cursor: pointer;
  font-size: 14px;
}

.btn-back {
  background: none;
  border: none;
  color: #a29bfe;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 8px;
}

.switch-text {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
  color: #999;
}

.switch-text a { color: #a29bfe; text-decoration: none; margin-left: 4px; }

.error-msg {
  color: #ff6b6b;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 8px;
}

.topbar-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar-left .btn-link {
  align-self: flex-start;
  font-size: 12px;
  padding: 0;
}

.streak-card {
  background: linear-gradient(135deg, #6c5ce7, #341f97);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.streak-number { font-size: 40px; font-weight: bold; display: block; }
.streak-label { font-size: 13px; opacity: 0.85; }

.module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.module-card {
  background: #1a1a22;
  border: 1px solid #2a2a35;
  border-radius: 14px;
  padding: 20px 12px;
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  text-align: center;
}

.module-card-wide { grid-column: span 2; }

.module-icon { display: block; font-size: 28px; margin-bottom: 8px; }

.achievements-box {
  background: #1a1a22;
  border-radius: 14px;
  padding: 16px;
}

.achievements-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.achievement-badge {
  background: #2a2a35;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.option-btn {
  background: #1a1a22;
  border: 1px solid #2a2a35;
  color: #fff;
  padding: 14px;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.option-btn:active { background: #2a2a35; }

.sim-situation {
  background: #1a1a22;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.feedback-box {
  background: #23233a;
  border-left: 4px solid #6c5ce7;
  padding: 16px;
  border-radius: 10px;
  margin-top: 16px;
}

.upload-box {
  background: #1a1a22;
  border: 1px dashed #2a2a35;
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.challenge-list, .checklist-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.challenge-item, .checklist-item {
  background: #1a1a22;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.challenge-item.done { opacity: 0.5; }

.challenge-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.stat-card {
  background: #1a1a22;
  border: 1px solid #2a2a35;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
}

.stat-number { font-size: 28px; font-weight: bold; display: block; color: #a29bfe; }
.stat-label { font-size: 12px; color: #999; }

.activity-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 140px;
  background: #1a1a22;
  border-radius: 14px;
  padding: 16px;
}

.activity-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.activity-bar {
  width: 100%;
  background: linear-gradient(180deg, #a29bfe, #6c5ce7);
  border-radius: 6px 6px 0 0;
  min-height: 4px;
}

.activity-bar-label {
  font-size: 10px;
  color: #999;
  margin-top: 6px;
}

.interest-bar-wrap { margin-bottom: 16px; }

.interest-bar-label {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}

.interest-bar-bg {
  background: #1a1a22;
  border-radius: 20px;
  height: 14px;
  overflow: hidden;
}

.interest-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  border-radius: 20px;
  transition: width 0.3s;
}
.insight-box {
  background: #1a1a22;
  border-left: 4px solid #a29bfe;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 20px;
}

.insight-source {
  font-size: 12px;
  color: #999;
  margin-top: 8px;
}

.insight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insight-item {
  background: #1a1a22;
  border-left: 4px solid #a29bfe;
  border-radius: 10px;
  padding: 14px;
}
.breathing-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  margin: 40px auto;
  transform: scale(1);
}

.breathing-inhale { transition: transform 4s linear; transform: scale(1.4); }
.breathing-exhale { transition: transform 4s linear; transform: scale(1); }
.breathing-hold { transition: none; }