.page { padding: 32px; max-width: 1000px; margin: 0 auto; }
.loading-center { display: flex; flex-direction: column; align-items: center; padding: 80px 20px; gap: 16px; }
.loading-text { font-size: 14px; color: var(--text-muted); }

.profile-header { display: flex; align-items: center; gap: 24px; margin-bottom: 24px; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: var(--radius-lg);
  background: var(--accent-gradient); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 32px; flex-shrink: 0;
}
.profile-info h1 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }
.profile-email { color: var(--text-secondary); font-size: 14px; margin: 0 0 2px; }
.profile-joined { color: var(--text-muted); font-size: 12px; margin: 0; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.stat-icon { font-size: 28px; }
.stat-icon.blue { color: var(--accent-primary); }
.stat-icon.green { color: var(--success); }
.stat-icon.orange { color: var(--warning); }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 13px; color: var(--text-muted); }

.section { margin-bottom: 32px; }
.section-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin: 0 0 16px; }

.results-list { display: flex; flex-direction: column; gap: 12px; }
.result-item { display: flex; align-items: center; gap: 16px; }
.result-item:hover { border-color: var(--border-strong); }
.result-icon-wrap {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--accent-primary-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.result-icon-wrap .material-symbols-rounded { font-size: 22px; color: var(--accent-primary); }
.result-info { flex: 1; min-width: 0; }
.result-info h4 { font-size: 14px; font-weight: 600; color: var(--text-primary); margin: 0 0 2px; }
.result-info p { font-size: 12px; color: var(--text-muted); margin: 0; }

.result-score-wrap { text-align: center; margin-right: 8px; }
.score-circle {
  display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%; font-weight: 700; font-size: 13px; margin-bottom: 2px;
}
.score-circle.good { background: var(--success-light); color: var(--success); border: 2px solid var(--success-border); }
.score-circle.avg { background: var(--warning-light); color: var(--warning); border: 2px solid var(--warning-border); }
.score-circle.poor { background: var(--danger-light); color: var(--danger); border: 2px solid var(--danger-border); }
.score-detail { font-size: 11px; color: var(--text-muted); }

@media (max-width: 768px) {
  .page { padding: 20px; }
  .profile-header { flex-direction: column; text-align: center; }
  .stats-row { grid-template-columns: 1fr; }
  .result-item { flex-wrap: wrap; }
}

/* Topics of Interest Section */
.topics-section {
  margin-bottom: 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.section-title {
  margin-bottom: 0px !important;
}

.saving-indicator {
  font-size: 13px;
  color: #667eea;
  font-weight: 500;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

.section-desc {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Existing Topics Tags */
.existing-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.no-topics-msg {
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
  width: 100%;
}

.topic-tag {
  display: flex;
  align-items: center;
  background: var(--bg-hover);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 4px 6px 4px 16px;
  gap: 12px;
  transition: all 0.2s ease;
}

.topic-tag:hover {
  background: var(--bg-card);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.topic-tag-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-tag-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.topic-tag-level {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--bg-card);
}
.topic-tag-level.high { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.topic-tag-level.medium { color: #f59e0b; background: rgba(245, 158, 11, 0.1); }
.topic-tag-level.low { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

.topic-tag-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  cursor: pointer;
  transition: all 0.2s;
}

.topic-tag-remove:hover {
  background: #ef4444;
  color: #fff;
}

.topic-tag-remove .material-symbols-rounded {
  font-size: 16px;
}

/* Add New Topic Form */
.add-topic-form {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding: 20px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 12px;
  border: 1px dashed rgba(102, 126, 234, 0.3);
}

.topic-input-group,
.topic-slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.topic-input-group {
  flex: 1.5;
}

.topic-slider-group {
  flex: 2;
}

.add-topic-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.comfort-value {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: var(--bg-card);
}
.comfort-value.high { color: #22c55e; }
.comfort-value.medium { color: #f59e0b; }
.comfort-value.low { color: #ef4444; }

.input-field {
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
}

.slider-field {
  width: 100%;
  accent-color: #667eea;
}

.btn-add {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  height: 42px; /* Match input heights roughly */
}

@media (max-width: 640px) {
  .add-topic-form {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Edit Profile Modal & Actions */
.profile-header-main {
  display: flex;
  align-items: center;
  gap: 24px;
}

.profile-actions {
  margin-left: auto;
}

.profile-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 6px;
}

.profile-email {
  display: flex;
  align-items: center;
  gap: 6px;
}

.profile-email .material-symbols-rounded,
.profile-phone .material-symbols-rounded {
  font-size: 16px;
  color: var(--text-muted);
}

.resume-display {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.resume-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.resume-link:hover {
  background: #667eea;
  color: #fff;
}

.resume-link .material-symbols-rounded {
  font-size: 18px;
}

.remove-resume-btn {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.remove-resume-btn:hover {
  background: var(--danger);
  color: #fff;
}

.no-resume-text {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-out;
}

.modal-container {
  background: var(--bg-card);
  width: 90%; max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  border: 1px solid var(--border-color);
  overflow: hidden;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex; justify-content: space-between; align-items: center;
}
.modal-header h2 { font-size: 18px; font-weight: 600; margin: 0; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex; justify-content: flex-end; gap: 12px;
  background: var(--bg-hover);
}

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.form-input {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px; background: var(--bg-input);
  color: var(--text-primary); font-family: inherit; font-size: 14px;
  transition: all 0.2s;
}
.form-input:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(102,126,234,0.1); }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }
.file-upload-wrap {
  border: 1px dashed var(--border-color);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0,0,0,0.02);
}
.file-input { border: none; padding: 0; background: transparent; }

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