/* Profile Header */
.profile-header {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 40px;
}
.profile-avatar-wrap { position: relative; cursor: pointer; }
.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sunrise), var(--solar));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 28px;
  font-family: var(--font-display); color: #fff;
  overflow: hidden; flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(255,107,44,0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profile-avatar-wrap:hover .profile-avatar {
  transform: scale(1.04);
  box-shadow: 0 6px 28px rgba(255,107,44,0.3);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-ring {
  padding: 3px; border-radius: 50%;
  background: linear-gradient(135deg, var(--first-light), var(--sunrise), var(--solar));
}
.profile-avatar-edit {
  position: absolute; bottom: -2px; right: -2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pure); border: 2px solid var(--daylight);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--n500);
  box-shadow: var(--sh-sm);
  opacity: 0; transition: opacity 0.2s ease;
}
.profile-avatar-wrap:hover .profile-avatar-edit { opacity: 1; }

.profile-info h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 4px;
}
.profile-company {
  font-size: 14px; color: var(--n400); font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.profile-company-name {
  text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600;
}
.role-badge {
  display: inline-flex; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em;
  background: rgba(255,107,44,0.06); color: var(--first-light);
  border: 1px solid rgba(255,107,44,0.08);
}

/* Sunrise Progress Bar */
.sunrise-progress { margin-bottom: 40px; }
.sunrise-bar-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.sunrise-bar {
  flex: 1; height: 8px; border-radius: 4px;
  background: rgba(0,0,0,0.04); overflow: hidden; position: relative;
}
.sunrise-bar-fill {
  height: 100%; border-radius: 4px;
  background: var(--awakening-gradient); background-size: 300% 100%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 12px rgba(255,107,44,0.2), 0 0 24px rgba(255,159,28,0.08);
  position: relative;
}
.sunrise-pct {
  font-family: var(--font-display); font-weight: 700;
  font-size: 20px; min-width: 48px; text-align: right;
  letter-spacing: -0.02em;
}
.sunrise-stats { display: flex; gap: 24px; }
.sunrise-stat {
  font-size: 12px; color: var(--n400); display: flex; align-items: center; gap: 6px;
}
.sunrise-stat-dot { width: 6px; height: 6px; border-radius: 50%; }
.sunrise-stat-dot.completed { background: #4CAF50; box-shadow: 0 0 6px rgba(76,175,80,0.3); }
.sunrise-stat-dot.available { background: var(--sunrise); box-shadow: 0 0 6px rgba(255,107,44,0.3); }
.sunrise-stat-dot.locked { background: var(--n200); }

/* Profile fields */
.profile-fields-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  margin-bottom: 8px;
}
.profile-field { margin-bottom: 20px; }
.profile-field:last-child { margin-bottom: 0; }
.profile-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--n400); margin-bottom: 6px; font-family: var(--font-display);
}
.profile-input {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.8);
  font-family: var(--font); font-size: 14px; color: var(--night);
  transition: border-color 0.2s ease; outline: none;
}
.profile-input:focus { border-color: var(--sunrise); box-shadow: 0 0 0 3px rgba(255,107,44,0.08); }
.profile-select {
  width: 100%; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,0.08); background: rgba(255,255,255,0.8);
  font-family: var(--font); font-size: 14px; color: var(--night);
  transition: border-color 0.2s ease; outline: none; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 5l3 3 3-3' stroke='%238B8B9E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.profile-select:focus { border-color: var(--sunrise); box-shadow: 0 0 0 3px rgba(255,107,44,0.08); }
.profile-autosave-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.profile-autosave-status {
  font-size: 12px; font-weight: 500; color: var(--n300);
  transition: opacity 0.3s ease;
}
.profile-autosave-status.saving { color: var(--n400); }
.profile-autosave-status.saved { color: var(--first-light); }
.profile-autosave-status.error { color: #d32f2f; }
.profile-section-divider { height: 1px; background: rgba(0,0,0,0.05); margin: 32px 0 24px; }

/* Account actions */
.profile-account-actions { display: flex; flex-direction: column; gap: 8px; }
.profile-action-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.05);
  cursor: pointer; transition: all 0.2s ease; text-align: left;
  font-family: var(--font);
}
.profile-action-btn:hover {
  background: rgba(255,255,255,0.9); border-color: rgba(0,0,0,0.08);
}
.profile-action-icon { font-size: 18px; flex-shrink: 0; }
.profile-action-label { font-size: 14px; font-weight: 600; color: var(--n700); }
.profile-action-hint { font-size: 12px; color: var(--n400); margin-top: 1px; }
.profile-action-danger:hover { border-color: rgba(211,47,47,0.15); }
.profile-action-danger .profile-action-label { color: #d32f2f; }

@media (max-width: 768px) {
  .profile-header { flex-direction: column; text-align: center; gap: 16px; }
  .profile-company { justify-content: center; }
}
